命令集合如下

yum –y install prce*
yum –y install openssl*
yum install zlib*

Go to website http://nginx.org/en/download.html to find the latest version download url:
http://nginx.org/download/nginx-1.10.1.tar.gz

mkdir /usr/nginx/
cd /usr/nginx/
wget http://nginx.org/download/nginx-1.10.1.tar.gz
tar -zxvf nginx-1.10.1.tar.gz
cd nginx-1.10.1
./configure --prefix=/usr/local/nginx-1.10.1 --with-http_ssl_module --with-http_spdy_module --with-http_stub_status_module --with-pcre
make
make install

Some nginx command

#Start nginx
/usr/local/nginx-1.10.1/sbin/nginx
#Stop nginx
/usr/local/nginx-1.10.1/sbin/nginx –s stop
#Reload nginx
/usr/local/nginx-1.10.1/sbin/nginx –s reload

dawei

【声明】:唐山站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。