nginx编译参数

2016/10/19 nginx

https://www.nginx.com/resources/admin-guide/installing-nginx-open-source/ http://nginx.org/en/docs/configure.html

cd /usr/local/src/nginx-1.6.2/

./configure –user=www –group=www \

–prefix=/usr/local/nginx16
–sbin-path=/usr/local/nginx16/sbin/nginx
–conf-path=/usr/local/nginx16/etc/nginx.conf
–pid-path=/var/run/nginx16.pid
–lock-path=/var/run/nginx16.lock
–error-log-path=/var/log/nginx16/error.log
–http-log-path=/var/log/nginx16/access.log
–with-http_stub_status_module
–with-http_ssl_module
–with-http_gunzip_module
–with-http_gzip_static_module
–with-http_realip_module
–with-file-aio


Search

    Table of Contents