安装依赖
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