mdkir -p /nginx ||cd/nginx
curl -O http://nginx.org/download/nginx-1.17.9.tar.gz
cd nginx-1.17.9
useradd -s /sbin/nologin -c"nginx web server" -d /usr/local/nginx nginx
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel gcc gcc-c + + autoconf automake make
./configure --prefix=/usr/local/nginx --user=nginx --group=nginx --with-threads --with-file-aio --with-stream --with-http_ssl_module --with-http_stub_status_module
make -j 2 ; make install
echo "usr/local/nginx/sbin/nginx" >>/etc/re.local
chmodd +x /etc/rc.d/rc.local
echo "PATH=/usr/local/nginx/sbin:$PATH" >>/etc/profile
PATH=/usr/local/nginx/sbin:$PATH
nginx