命令集合如下
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