(003)Nginx编译配置参数讲解

  查看安装编译参数命令:

nginx -V

  

  编译选项说明:

编译选项

作用

--prefix=/etc/nginx
--sbin-path=/usr/sbin/nginx
--modules-path=/usr/lib64/nginx/modules
--conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--pid-path=/var/run/nginx.pid
--lock-path=/var/run/nginx.lock

安装目的目录或路径

--http-client-body-temp-path=/var/cache/nginx/client_temp
--http-proxy-temp-path=/var/cache/nginx/proxy_temp
--http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
--http-scgi-temp-path=/var/cache/nginx/scgi_temp

执行对应模块时,Nginx所保留的临时性文件

--user=nginx
--group=nginx

设定Nginx进程启动的用户和组用户
--with-cc-opt=parameters

设置额外的参数将被添加到CFLAGS变量

--with-ld-opt=parameters

设置附加的参数,链接系统库

原文地址:https://www.cnblogs.com/javasl/p/12817387.html