下载地址:http://nginx.org/download/
NGINX_FILE=nginx-1.14.0.tar.gz NGINX_FILE_DIR=nginx-1.14.0 if [ "$1" -eq "1" ];then yum install -y gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel --setopt=protected_multilib=false; if [ $? -eq 0 ];then groupadd -g 888 www; useradd -g www www -s /sbin/nologin -u 888; tar zxvf $NGINX_FILE; cd $NGINX_FILE_DIR; if [ $? -eq 0 ];then ./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-stream_ssl_module --with-http_ssl_module --with-stream; if [ $? -eq 0 ];then make && make install; echo "