linux安装nginx记录
1.下载压缩包并上传
http://nginx.org/en/download.html
2.安装依赖
yum -y install gcc zlib zlib-devel pcre-devel openssl-devel
3.创建文件夹上传并解压
tar -zxvf nginx-1.18.0.tar.gz
执行命令
./configure
make
make install
4.默认安装路径
/usr/localnginx
5.访问配置
cd/usr/local/nginx/sbin
./nginx
6.开放防火墙端口