yum install gcc
yum install pcre pcre-devel
cd /tmp
tar -zxvf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure
make
make install
tar -zxvf nginx-1.8.1.tar.gz
./configure
make
make install
/usr/local/nginx/sbin/nginx
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload
|