安裝依賴
yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
安裝nginx
wget -c https://nginx.org/download/nginx-1.10.1.tar.gz
tar -zxvf nginx-1.10.1.tar.gz
cd nginx-1.10.1
./configure
make
make install
nginx常用命令
./nginx
./nginx -s stop
./nginx -s quit
./nginx -s reload
ps aux|grep nginx
查看80端口是否打開
firewall-cmd --query-port=80/tcp
打開80端口
firewall-cmd --add-port=80/tcp