禁用防火墙
systemctl disable firewalld
systemctl stop firewalld
setenforce 0
安装pcre库
yum install pcre*
安装zlib库
yum install zlib*
编译安装Nginx:
./configure --prefix=/usr/local/Nginx --error-log-path=/var/log/Nginx/error.log --http-log-path=/var/log/Nginx/access.log --user=Nginx --group=Nginx
make && make install
启动Nginx:
cd /usr/local/Nginx/sbin
nohup ./Nginx &