在Linux上安装Nginx需要执行Configure脚本,该脚本需要做一些参数说明:


选项

说明

--prefix=<path> 指定Nginx软件的安装路径,若不指定默认安装在/usr/local/nginx/目录
--sbin-path=<path> 指定Nginx可执行文件安装路径,只能在安装时指定,若不指定默认为<prefix>/sbin/nginx/目录
--conf-path=<path> 在未给定-c选项下,指定默认的nginx.conf路径,若不指定默认为<prefix>/conf/
--pid-path=<path> 在nginx.conf中没有指定pid指令的情况下,默认的nginx.pid的路径。如果没有指定,默认为 <prefix>/logs/nginx.pid
--lock-path=<path> nginx.lock文件的路径,默认为<prefix>/logs/nginx.lock
--error-log-path=<path> 在nginx.conf中没有指定error_log指令的情况下,默认的错误日志的路径。如果没有指定,默认为 <prefix>/logs/error.log
--http-log-path=<path> 在nginx.conf中没有指定access_log指令的情况下,默认的访问日志的路径。如果没有指定,默认为 <prefix>/logs/access.log
--user=<user> 在nginx.conf中没有指定user指令的情况下,默认的nginx使用的用户。如果没有指定,默认为 nobody
--group=<group> 在nginx.conf中没有指定user指令的情况下,默认的nginx使用的组。如果没有指定,默认为 nobody
--builddir=<dir> 指定编译的目录
--with-debug 启用调试日志
--add-module=<path> 在目录中添加第三方模块
--with-poll_module 启用poll模块
--without-poll_module 禁止poll模块
--with-select_module 启用select信号处理模式
--without-select_module 禁止select信号处理模式
--with-http_ssl_module 启用HTTP的ssl模块
--with-http_realip_module 启用HTTP的realip模块,默认不启用
--with-http_addition_module 启用HTTP的addition模块,默认不启用
--with-http_sub_module 启用HTTP的sub模块,默认不启用
--with-http_dav_module 启用HTTP的dav模块,默认不启用
--with-http_flv_module 启用HTTP的flv模块,默认不启用
--with-http_stub_status_module 启用Server Status页,默认不启用
--with-http_perl_module 启用HTTP的perl模块,默认不启用
--with-perl_modules_path=<path> 指定perl模块的路径
--with-perl=<path> 指定perl执行文件的路径
--without-http_charset_module 禁用HTTP的charset模块,默认启用
--without-http_gzip_module 禁用HTTP的gzip模块,默认启用
--without-http_ssi_module 禁用HTTP的ssi模块,默认启用
--without-http_userid_module 禁用HTTP的userid模块,默认启用
--without-http_access_module 禁用HTTP的access模块,默认启用
--without-http_auth_basic_module 禁用HTTP的auth basic模块,默认启用
--without-http_autoindex_module 禁用HTTP的autoindex模块,默认启用
--without-http_geo_module 禁用HTTP的geo模块,默认启用
--without-http_map_module 禁用HTTP的map模块,默认启用
--without-http_referer_module 禁用HTTP的referer模块,默认启用
--without-http_rewrite_module 禁用HTTP的rewrite模块,默认启用
--without-http_proxy_module 禁用HTTP的proxy模块,默认启用
--without-http_fastcgi_module 禁用HTTP的fastcgi模块,默认启用
--without-http_memcached_module 禁用HTTP的memcached模块,默认启用
--without-http_limit_zone_module 禁用HTTP的limit zone模块,默认启用
--without-http_empty_gif_module 禁用HTTP的empty gif模块,默认启用
--without-http_browser_module 禁用HTTP的browser模块,默认启用
--without-http_upstream_ip_hash_module 禁用HTTP的upstream ip hash模块,默认启用
--http-client-body-temp-path=<path> 存放HTTP访问客户端请求报文的临时文件的路径
--http-proxy-temp-path=<path> 启用HTTP的proxy模块后,指定存放HTTP代理临时文件的路径
--http-fastcgi-temp-path=<path> 启用HTTP的fastcgi模块后,指定存放fastcgi模块临时文件路径
--without-http 禁用HTTP Server
--with-mail 启用IMAP4/POP3/SMTP代理模块
--with-mail_ssl_module 启用ngx_mail_ssl_module
--with-cc=<path> 指定C编译器的路径
--with-cpp=<path> 指定C预处理器的路径
--with-cc-opt=<options> 为CFLGS变量添加额外的参数,保证Nginx源代码及其模块可以正确编译
--with-ld-opt=<path> 为部分Nginx软件的模块编译指定链接库目录
--with-cpu-opt=<cpu> 为特定的CPU编译Nginx源码
--with-pcre=<path> 指定pcre库源代码的路径
--without-pcre 禁止Nginx服务器使用pcre库
--with-pcre-opt=<options> 为pcre库的building指定额外的指令
--with-md5=<dir> 指定md5库源代码的路径
--with-md5-opt=<options> 为md5库的building指定额外的指令
--with-md5-asm 使用md5库的汇编源代码
--with-sha1=<dir> 指定sha1库源代码的路径
--with-sha1-opt=<options> 为sha1库的building指定额外的指令
--with-sha1-asm 使用sha1库的汇编源代码
--with-zlib=<dir> 指定zlib库源代码的路径
--with-zlib-opt=<options> 为zlib库的building指定额外的指令
--with-zlib-asm=<cpu> 针对特殊的CPU申明使用汇编源代码
--with-openssl=<dir> 指定OpenSSL库源代码的路径
--with-openssl-opt=<options> 为OpenSSL库的building指定额外的指令

Configure脚本支持说明的更多相关文章

  1. Nginx的configure脚本支持选项整理

    在不同版本间,选项可能会有些许变化,请总是使用./configure –help命令来检查当前的选项列表. --prefix=<PATH> #Nginx安装路径.如果没有指定,默认为 /u ...

  2. nginx中configure脚本支持的常用选项,拍摄自《Nginx高性能Web服务器详解》

  3. nginx源码分析——configure脚本

    源码:nginx 1.13.0-release   一.前言      在分析源码时,经常可以看到类似 #if (NGX_PCRE) .... #endif 这样的代码段,这样的设计可以在不改动源码的 ...

  4. configure脚本参数介绍

    configure脚本有大量的命令行选项. 下面对每一个选项进行简略的介绍: --cache-file=FILE'configure' 会在你的系统上测试存在的特性(或者bug!).为了加速随后进行的 ...

  5. 清理configure脚本生成的文件

    今天在修改dovecot的代码时遇到一个问题,需要重新执行configure脚本,想先把之前configure生成的文件删除掉. 结果看了configure --help没有找到可以用的命令,最后搜了 ...

  6. 180807-Quick-Task 动态脚本支持框架之Groovy脚本加载执行

    Quick-Task 动态脚本支持框架之Groovy脚本加载执行 上一篇简答说了如何判断有任务动态添加.删除或更新,归于一点就是监听文件的变化,判断目录下的Groovy文件是否有新增删除和改变,从而判 ...

  7. 180729-Quick-Task 动态脚本支持框架之任务动态加载

    Quick-Task 动态脚本支持框架之任务动态加载 前面几篇博文分别介绍了整个项目的基本架构,使用说明,以及整体框架的设计与实现初稿,接下来则进入更细节的实现篇,将整个工程中核心实现捞出来,从为什么 ...

  8. 180723-Quick-Task 动态脚本支持框架之结构设计篇

    文章链接:https://liuyueyi.github.io/hexblog/2018/07/23/180723-Quick-Task-动态脚本支持框架之结构设计篇/ Quick-Task 动态脚本 ...

  9. 180719-Quick-Task 动态脚本支持框架之使用介绍篇

    文章链接:https://liuyueyi.github.io/hexblog/2018/07/19/180719-Quick-Task-动态脚本支持框架之使用介绍篇/ Quick-Task 动态脚本 ...

随机推荐

  1. c++几个通用工具

    Pairs(对组) 1.class pair可以将两个值视为一个单元,C++标准程序库内多处使用这个class.尤其容器类别map和multimap,就是使用pairs来管理其键值/实值(key/va ...

  2. 小程序日期格式(yyyy-MM-dd HH:mm:ss)转(yyyy/MM/dd HH:mm:ss)

    let newDate = (date).replace(/-/g, '/'); var date = new Date(newDate).getTime();

  3. codeforces613E

    Puzzle Lover CodeForces - 613E Oleg Petrov loves crossword puzzles and every Thursday he buys his fa ...

  4. 快速乘(O(1))

    inline long long multi(long long x,long long y,long long mod) { long long tmp=(x*y-(long long)((long ...

  5. 20175215 2018-2019-2 第九周java课程学习总结

    第十一章 JDBC与MySQL数据库 11.1 MySQL数据库管理系统 下载安装过程略 使用的是MySQL 5.6而非5.7 11.2 启动MySQL数据库服务器 启动和root用户过程略 11.3 ...

  6. 读取天气信息,并通过QQ邮箱发送至指定邮箱

    from email.mime.text import MIMEText from email.header import Header from smtplib import SMTP_SSL im ...

  7. Anaconda 改为国内镜像的方法

    Anaconda的conda 特别好用 但如果用国外的镜像,慢的出奇 可以改为了国内镜像会好很多 conda config --add channels https://mirrors.tuna.ts ...

  8. 微信小程序之地址联动

    这就是我们要实现的效果 <view class="consignee"> <!-- consignee 收件人 --> <text>收件人: & ...

  9. Android jni/ndk编程四:jni引用类型

    一.JNI引用类型 JNI支持三种类型的 opaque reference:local references, global references,和weak global references,下面 ...

  10. Node某个JS导出方法变量以及在其他地方引用的例子

    //modelJs.js var name="miyue"; function doSomething() { console.log("做一些事情"); } ...