1.上传或下载nginx软件包,并解压
1 rz 2 tar -xzvf nginx-1.20.0
2.搭建nginx安装环境
yum install gcc-c++ zlib-devel pcre-devel openssl-devel automake -y
3.进入解压后的目录,预编译操作
1 cd nginx-1.12.0 2 ./configure --prefix=/usr/local/nginx
3.编译并安装
make && make install
1.上传或下载nginx软件包,并解压
1 rz 2 tar -xzvf nginx-1.20.0
2.搭建nginx安装环境
yum install gcc-c++ zlib-devel pcre-devel openssl-devel automake -y
3.进入解压后的目录,预编译操作
1 cd nginx-1.12.0 2 ./configure --prefix=/usr/local/nginx
3.编译并安装
make && make install
转载于:https://www.cnblogs.com/shitou-st/p/10877457.html