编译Nginx(Compiling Nginx)

Nginx模块必须在编译的时候指定,完整的编译选项,可用的模块可以参考安装指导

下面是一个例子:

./configure \ –prefix=/usr \ –sbin-path=/usr/sbin/nginx \ –conf-path=/etc/nginx/nginx.conf \ –error-log-path=/var/log/nginx/error.log \ –pid-path=/var/run/nginx/nginx.pid \ –lock-path=/var/lock/nginx.lock \ –user=nginx \ –group=nginx \ –with-http_ssl_module \ –with-http_flv_module \ –with-http_gzip_static_module \ –http-log-path=/var/log/nginx/access.log \ –http-client-body-temp-path=/var/tmp/nginx/client/ \ –http-proxy-temp-path=/var/tmp/nginx/proxy/ \ –http-fastcgi-temp-path=/var/tmp/nginx/fcgi/

更多编译参数与可用的模块信息请运行./configure –help

Was this helpful?

0 / 0

发表评论 0

Your email address will not be published. Required fields are marked *