zoukankan      html  css  js  c++  java
  • 三、nginx 编译参数

    命令

    --prefix=/usr/share/nginx  # nginx 帮助目录
    --sbin-path=/usr/sbin/nginx # nginx 执行命令
    --modules-path=/usr/lib64/nginx/modules # nginx 模块
    --conf-path=/etc/nginx/nginx.conf # nginx 配置文件
    --error-log-path=/var/log/nginx/error.log # nginx 错误日志
    --http-log-path=/var/log/nginx/access.log # nginx 访问日志
    --http-client-body-temp-path=/var/lib/nginx/tmp/client_body 
    --http-proxy-temp-path=/var/lib/nginx/tmp/proxy 
    --http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi 
    --http-uwsgi-temp-path=/var/lib/nginx/tmp/uwsgi 
    --http-scgi-temp-path=/var/lib/nginx/tmp/scgi 
    --pid-path=/var/run/nginx.pid # nginx 启动服务的 Pid
    --lock-path=/var/lock/subsys/nginx # nginx 锁目录
    --user=nginx --group=nginx  # 设定 nginx 进程启动的用户和用户组
    --with-file-aio --with-ipv6
    --with-http_ssl_module --with-http_v2_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module=dynamic --with-http_image_filter_module=dynamic --with-http_geoip_module=dynamic --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_degradation_module --with-http_slice_module --with-http_stub_status_module --with-http_perl_module=dynamic --with-mail=dynamic --with-mail_ssl_module --with-pcre --with-pcre-jit --with-stream=dynamic --with-stream_ssl_module --with-debug --with-cc-opt='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector #设置额外的参数将被添加到CFLASGS变量 --param=ssp-buffer-size=4 -m64 -mtune=generic' --with-ld-opt=' -Wl,-E' # 设置附加的参数,链接系统库
  • 相关阅读:
    OCP 071【中文】考试题库(cuug整理)第51题
    OCP 071【中文】考试题库(cuug整理)第50题
    OCP 071【中文】考试题库(cuug整理)第49题
    OCP 071【中文】考试题库(cuug整理)第48题
    OCP 071【中文】考试题库(cuug整理)第47题
    OCP 071【中文】考试题库(cuug整理)第46题
    three 优化压缩
    个人最近功能demo总结
    下载文件,204问题
    debug和release的web.config分开配置
  • 原文地址:https://www.cnblogs.com/jogen/p/8127419.html
Copyright © 2011-2022 走看看