码迷,mamicode.com
首页 > 其他好文 > 详细

nginx源码包下载地址

时间:2017-10-13 12:36:08      阅读:190      评论:0      收藏:0      [点我收藏+]

标签:nginx

http://nginx.org/en/download.html

稳定版1.12.1

http://nginx.org/download/nginx-1.12.1.tar.gz

稳定版1.10.3

http://nginx.org/download/nginx-1.10.3.tar.gz

从源码包编译

  • --prefix=path 定义安装路径

  • --sbin-path=path 定义可执行文件安装路径

  • --conf-path=path 定义配置文件路径

  • --pid-path=path  定义nginx.pid文件路径

  • --error-log-path=path 定义错误日志文件路径

  • --http-log-path=path 定义访问日志文件路径

  • --build=name — sets an optional nginx build name.设置一个可选的Nginx建立名称

  • --user=name  设置默认用户为 nobody.

  • --group=name 设置默认组

  • --with-select_module或--without-select_module  

  • 允许或禁止编译服务器使用select()方法工作。如果平台上没有合适的方法找到,例如kqueue,epoll,或者/dev/poll,那么这个模块会自动编译。

  • --with-poll_module或--without-poll_module  

  • 允许或禁止服务器工作在poll()方式。如果平台上没有合适的方法像kqueue,epoll或者/dev/poll,那么这个模块会自动编译。

  • poll和select实现功能差不多,但poll效率高,以后要多用poll

  • --without-http_gzip_module 禁止编译压缩HTTP服务器回复的模块。要想编译和运行这么模块,那么需要zlib库的支持。

  • --without-http_rewrite_module 禁止编译HTTP重定向请求的模块。为了编译这个模块,PCRE库需要事先准备好。

  • --without-http_proxy_module 禁止编译HTTP服务器代理模块

  • --with-http_ssl_module 允许编译支持HTTPS协议的模块。默认没编译。为了编译和运行这个模块,OpenSSL库是需要的。

  • --with-pcre=path 指定pcre库的位置

  • --with-pcre-jit  构建带有“just-in-time compilation(运行时编译执行的技术)”的pcre库,支持 (1.1.12, the pcre_jit directive).

  • --with-zlib=path 指定zlib库的位置

  • --with-cc-opt=parameters — sets additional parameters that will be added to the CFLAGS variable. When using the system PCRE library under FreeBSD, --with-cc-opt="-I /usr/local/include" should be specified. If the number of files supported by select() needs to be increased it can also be specified here such as this: --with-cc-opt="-D FD_SETSIZE=2048".

  • --with-ld-opt=parameters 设置在链接时候的额外的参数 (When using the system PCRE library under FreeBSD, --with-ld-opt="-L /usr/local/lib" should be specified.


本文出自 “菜鸟学习笔记” 博客,谢绝转载!

nginx源码包下载地址

标签:nginx

原文地址:http://bohel.blog.51cto.com/6218546/1971960

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!