下载nginx-1.9.12

传到/usr/local/src

安装 pcre openssl

yum install pcre *

yum install openssl*

解压nginx

tar -zxvf nginx-1.9.12.tar.gz


./configure --prefix=/usr/local/nginx-1.9.12 --with-http_ssl_module --with-http_spdy_module --with-http_stub_status_module --with-pcre


make 

make install

/usr/local/nginx-1.9.12/sbin/nginx