博客
关于我
nginx编译参数详解1
阅读量:344 次
发布时间:2019-03-04

本文共 1621 字,大约阅读时间需要 5 分钟。

在实际安装nginx时,我们需要对nginx进行编译安装,编译时,会添加相应使用功能的参数。

举例内容:这里举例部分内容进行讲解,实际应用的时候按照所需内容进行编译安装。

./configure--prefix=/data/nginx --sbin-path=/data/nginx/sbin/nginx--conf-path=/data/nginx/conf/nginx.conf--error-log-path=/data/nginx/log/error.log--http-log-path=/data/nginx/log/access.log --pid-path=/data/nginx/log/pid/nginx.pid--lock-path=/data/nginx/log/lock/subsys/nginx --with-http_ssl_module--with-http_realip_module --with-http_addition_module --with-http_sub_module--with-http_dav_module --with-http_flv_module --with-http_gzip_static_module--with-http_stub_status_module --with-http_perl_module--with-ld-opt="-Wl,-E" --with-http_image_filter_module

1.相应参数讲解

--prefix:  指定安装目录
--sbin-path:  指定(执行)程序文件位置
--conf-path: 指向配置文件位置
--http-log-path: 指向http日志文件位置
--http-log-path: 指向http日志文件位置
--lock-path :指向lock文件(nginx.lock)(安装文件锁定,防止已安装完毕的文件件被别人利用,或自己误操作。)
--with-http_ssl_module: 启用ngx_http_ssl_module模块内容支持(使其支持https请求)
--with-http_realip_module :启用ngx_http_realip_module模块支持(这个模块允许从请求标头更改客户端的IP地址值,默认为关,这里添加此参数用于测试使用)
--with-http_sub_module: 启用ngx_http_sub_module支持(允许用一些其他文本替换nginx响应中的一些文本,支持文本替换使用)
--with-http_dav_module : 启用ngx_http_dav_module支持(增加PUT,DELETE,MKCOL创建集合、COPY 和 MOVE 方法)默认情况下为关闭,编译后可开启此功能
--with-http_flv_module : 启用ngx_http_flv_module支持(提供寻求内存使用基于时间的偏移量文件)
--with-http_gzip_static_module: 启用ngx_http_gzip_static_module支持(在线实时压缩输出数据流文件,可以使大文件在访问时压缩加快访问速度)
--with-http_stub_status_module : 启用ngx_http_stub_status_module支持(获取 nginx 自上次启动以来的工作状态)
--with-http_perl_module: 启用ngx_http_perl_module支持(该模块使nginx可以直接使用perl或通过ssi调用 perl)
--with-ld-opt="-Wl,-E" : 设置连接文件参数
--with-http_image_filter_module: 第三方模块(模块生成缩略图)

转载地址:http://hbie.baihongyu.com/

你可能感兴趣的文章
Navicat 设置时间默认值(当前最新时间)
查看>>
navicat 连接远程mysql
查看>>
navicat:2013-Lost connection to MySQL server at ‘reading initial communication packet解决方法
查看>>
Navicate for mysql 数据库设计-数据库分析
查看>>
Navicat下载和破解以及使用
查看>>
Navicat中怎样将SQLServer的表复制到MySql中
查看>>
navicat创建连接 2002-can‘t connect to server on localhost(10061)且mysql服务已启动问题
查看>>
Navicat可视化界面导入SQL文件生成数据库表
查看>>
Navicat向sqlserver中插入数据时提示:当 IDENTITY_INSERT 设置为 OFF 时,不能向表中的标识列插入显式值
查看>>
Navicat因导入的sql文件中时间数据类型有参数而报错的原因(例:datetime(3))
查看>>
Navicat如何连接MySQL
查看>>
navicat导入.sql文件出错2006- MySQLserver has gone away
查看>>
navicat怎么导出和导入数据表
查看>>
Navicat通过存储过程批量插入mysql数据
查看>>
Navicat(数据库可视化操作软件)安装、配置、测试
查看>>
NB-IOT使用LWM2M移动onenet基础通信套件对接之APN设置
查看>>
nc命令详解
查看>>
ndk特定版本下载
查看>>
NDK编译错误expected specifier-qualifier-list before...
查看>>
Neat Stuff to Do in List Controls Using Custom Draw
查看>>