参考来源:http://nginx.org/en/docs/configure.html
nginx-1.6.3 编译安装:
1) ./configure --help 查看编译选项
2) 需要安装一下库: zlib zlib-devel pcre pcre-devel openssl openssl-devel
yum install -y zlib zlib-devel pcre pcre-devel openssl openssl-devel
3)
默认安装路径 /usr/local/nginx
./configure \
--sbin-path=/usr/local/nginx/nginx \
--conf-path=/usr/local/nginx/nginx.conf \
--pid-path=/usr/local/nginx/nginx.pid \
--with-http_ssl_module \
可选项
--with-pcre=../pcre-4.4 \
--with-zlib=../zlib-1.1.3 \
4)make && make install
5) 启动:/usr/local/nginx/nginx