标签:nginx
cd/usr/local/src
wgetftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.37.tar.gzhttp://zlib.net/zlib-1.2.8.tar.gz http://nginx.org/download/nginx-1.9.2.tar.gzhttp://nginx.org/download/nginx-1.9.2.tar.gz
tar -zxvf pcre-8.37.tar.gz && tar-zxvf zlib-1.2.8.tar.gz nginx-1.9.2.tar.gz
cd pcre-8.37
ls
./configure && make && makeinstall
cd ../zlib-1.2.8
./configure && make && makeinstall
cd /usr/local/src/nginx-1.9.2
法一
./configure --prefix=/usr/local/nginx--conf-path=/usr/local/nginx/nginx.conf --with-pcre=/usr/local/src/pcre-8.37--with-zlib=/usr/local/src/zlib-1.2.8
法二、
./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=/usr/local/src/pcre-8.37 --with-zlib=/usr/local/src/zlib-1.2.8--with-openssl=/usr/local/src/openssl-1.0.2c
重启
# /usr/local/nginx/sbin/nginx -s reload
标签:nginx
原文地址:http://xoyabc.blog.51cto.com/7401264/1665765