下载资源http://nginx.org/download
依赖包:yum -y install gcc pcre-devel openssl-devel
tar -zxvf nginx-1.9.0.tar.gz
cd nginx-1.9.0.tar.gz
./configure \
>--prefix=/usr/local/nginx \
>--user=nginx \
>--group=nginx \
>--with-http_ssl_module
make 编译不安装。
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginxold
cp objs/nginx /usr/local/nginx/sbin/
make upgrade // nginx -s reload
nginx -v