centos下编译安装nginx|configure参数对照列表
2013-04-28 22:58
471 查看
4.Nginx的configure脚本支持的选项。(可以通过 ./configure --help命令查看Nginx可选择的编译选项,以下仅列出本人比较常用的选项)
--prefix=<path> ——Nginx安装路径,如果没有指定,默认为 /usr/local/nginx
--sbin-path=<path> ——Nginx可执行文件安装路径。只能安装时指定,如果没有指定,默认为<prefix>/sbin/nginx
--conf-path=<path> ——在没有给定-c选项下默认的nginx.conf的路径。如果没有指定,默认为<prefix>/conf/nginx.conf
--pid-path=<path> ——在nginx.conf中没有指定pid指令的情况下,默认的nginx.pid的路径。如果没有指定,默认为<prefix>/logs/nginx.conf
--error-log-path=<path> ——在nginx.conf中没有指定error_log指令的情况下,默认的错误日志的路径。如果没有指定,默认为<prefix>/logs/error.log
--http-log-path=<path> ——在nginx.conf中没有指定access_log指令的情况下,默认的访问日志的路径。如果没有指定,默认为<path>/logs/access.log
--user=<path> ——在nginx.conf中没有指定user指令的情况下,默认的Nginx使用的用户。如果没有指定,默认为nobody
--group=<path> ——在nginx.conf中没有指定user指令的情况下,默认的Nginx使用的组,如果没有指定,默认为nobody
--with-http_ssl_module ——开启HTTP SSL模块,使Nginx可以支持HTTPS请求。这个模块需要已经安装 openssl ,在debian上是libssl
--with-http_dav_module ——启用ngx_http_dav_module
--with-http_flv_module ——启用ngx_http_flv_module
--with-http_gzip_module ——启用ngx_http_gzip_module,需要zlib库的支持
--with-http_stub_status_module ——启用“server status”统计页
--with-http_referer_module ——启用ngx_http_referer_module,当浏览器向web服务器发送请求的时候,一般会带上referer,告诉服务器我是从哪个页面链接过来的,服务器籍此可以获得一些信息用于处理
--with-http_rewrite_module ——启用ngx_http_rewrite_module,需要pcre库的支持
--with-http_proxy_module ——启用ngx_http_proxy_module
--with-http_fastcgi_module ——启用ngx_http_fastcgi_module
--http-client-body-temp-path=PATH ——指定http客户端请求缓存文件存放目录的路径
--http-proxy-temp-path=PATH ——指定http反向代理缓存文件存放目录的路径
--http-fastcgi-temp-path=PATH ——指定http FastCGI缓存文件存放目录的路径
--with-mail ——启用IMAP4/POP3/SMTP 代理模块
--with-mail_ssl_module ——启用ngx_mail_ssl_module
--with-cpu-opt=CPU ——为特定的CPU编译,有效的值包括:pentium 、pentiumpro 、pentium3 、pentium4 、athlon 、opteron 、amd64 、sparc64 、ppc64
--with-pcre=DIR ——指定PCRE库的源代码的路径
--with-pcre-opt=OPTIONS ——设置PCRE的额外编译选项
--with-md5=DIR ——设置MD5库的源代码路径
--with-md5-opt=OPTIONS ——设置MD5库的额外编译选项
--with-md5-asm ——使用MD5汇编源码
--with-sha1=DIR ——设置sha1库的源代码的路径
--with-sha1-opt=OPTIONS ——设置sha1库的额外编译选项
--with-sha1-asm ——使用sha1汇编源码
--with-zlib=DIR ——设置zlib库的源代码路径
--with-zlib-opt=OPTIONS ——设置zlib库的额外编译选项
--with-openssl=DIR ——设置openssl库的源代码路径
--with-openssl-opt=OPTIONS ——设置openssl库的额外编译选项
--with-debug ——启用调试日志
--add-module=PATH ——添加一个在指定路径中能够找到的第三方模块
PS:其实可以直接可以用yum 安装的,但是为了练习 所以,采用编译方式安装..
--prefix=<path> ——Nginx安装路径,如果没有指定,默认为 /usr/local/nginx
--sbin-path=<path> ——Nginx可执行文件安装路径。只能安装时指定,如果没有指定,默认为<prefix>/sbin/nginx
--conf-path=<path> ——在没有给定-c选项下默认的nginx.conf的路径。如果没有指定,默认为<prefix>/conf/nginx.conf
--pid-path=<path> ——在nginx.conf中没有指定pid指令的情况下,默认的nginx.pid的路径。如果没有指定,默认为<prefix>/logs/nginx.conf
--error-log-path=<path> ——在nginx.conf中没有指定error_log指令的情况下,默认的错误日志的路径。如果没有指定,默认为<prefix>/logs/error.log
--http-log-path=<path> ——在nginx.conf中没有指定access_log指令的情况下,默认的访问日志的路径。如果没有指定,默认为<path>/logs/access.log
--user=<path> ——在nginx.conf中没有指定user指令的情况下,默认的Nginx使用的用户。如果没有指定,默认为nobody
--group=<path> ——在nginx.conf中没有指定user指令的情况下,默认的Nginx使用的组,如果没有指定,默认为nobody
--with-http_ssl_module ——开启HTTP SSL模块,使Nginx可以支持HTTPS请求。这个模块需要已经安装 openssl ,在debian上是libssl
--with-http_dav_module ——启用ngx_http_dav_module
--with-http_flv_module ——启用ngx_http_flv_module
--with-http_gzip_module ——启用ngx_http_gzip_module,需要zlib库的支持
--with-http_stub_status_module ——启用“server status”统计页
--with-http_referer_module ——启用ngx_http_referer_module,当浏览器向web服务器发送请求的时候,一般会带上referer,告诉服务器我是从哪个页面链接过来的,服务器籍此可以获得一些信息用于处理
--with-http_rewrite_module ——启用ngx_http_rewrite_module,需要pcre库的支持
--with-http_proxy_module ——启用ngx_http_proxy_module
--with-http_fastcgi_module ——启用ngx_http_fastcgi_module
--http-client-body-temp-path=PATH ——指定http客户端请求缓存文件存放目录的路径
--http-proxy-temp-path=PATH ——指定http反向代理缓存文件存放目录的路径
--http-fastcgi-temp-path=PATH ——指定http FastCGI缓存文件存放目录的路径
--with-mail ——启用IMAP4/POP3/SMTP 代理模块
--with-mail_ssl_module ——启用ngx_mail_ssl_module
--with-cpu-opt=CPU ——为特定的CPU编译,有效的值包括:pentium 、pentiumpro 、pentium3 、pentium4 、athlon 、opteron 、amd64 、sparc64 、ppc64
--with-pcre=DIR ——指定PCRE库的源代码的路径
--with-pcre-opt=OPTIONS ——设置PCRE的额外编译选项
--with-md5=DIR ——设置MD5库的源代码路径
--with-md5-opt=OPTIONS ——设置MD5库的额外编译选项
--with-md5-asm ——使用MD5汇编源码
--with-sha1=DIR ——设置sha1库的源代码的路径
--with-sha1-opt=OPTIONS ——设置sha1库的额外编译选项
--with-sha1-asm ——使用sha1汇编源码
--with-zlib=DIR ——设置zlib库的源代码路径
--with-zlib-opt=OPTIONS ——设置zlib库的额外编译选项
--with-openssl=DIR ——设置openssl库的源代码路径
--with-openssl-opt=OPTIONS ——设置openssl库的额外编译选项
--with-debug ——启用调试日志
--add-module=PATH ——添加一个在指定路径中能够找到的第三方模块
PS:其实可以直接可以用yum 安装的,但是为了练习 所以,采用编译方式安装..
相关文章推荐
- centos编译安装nginx,及其编译参数解析
- 64位centos上nginx,php编译安装遇configure: error: Cannot find libmysqlclient under /usr 错误解决
- CentOS 6.6服务器编译安装lnmp(Nginx1.6.2+MySQL5.6.21+PHP5.6.3)
- CentOS 6.3 编译安装 配置 nginx server php mysql c gcc g++ c++等
- CentOS 6.6编译安装Nginx1.6.2+MySQL5.6.21+PHP5.6.3
- 在CentOS 7下编译安装Nginx+PHP+MySQL环境
- CentOS下编译安装nginx及配置缩略图插件的方法教程
- CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14
- CentOS 7下编译安装Nginx 1.11.10教程
- CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14
- Linux下查看nginx、mysql、php的安装路径和编译参数
- CentOS 6下源码编译安装nginx 1.4.3
- nginx使用 - 编译时参数详情列表
- CentOS Apache安装设置编译器及编译参数
- Centos6.5源码编译安装nginx
- CentOS 7下编译安装 nginx1.9.14
- centos 6 下编译安装 nginx
- CentOS 6.0(X64)下编译安装LNMP平台( Nginx1.0.10 + PHP5.3.8 + Mysql5.5.18 )
- centos6.5生产环境编译安装nginx-1.11.3并增加第三方模块ngx_cache_purge、nginx_upstream_check、ngx_devel_kit、lua-nginx
- CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14方法分享