标签:
参考来源: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 -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
4)make && make install
5) 启动:/usr/local/nginx/nginx
标签:
原文地址:http://www.cnblogs.com/sanshuiqing/p/4446866.html