nginx源码安装
1,首先解决系统环境:
安装rpm包组{CentOS6 跟开发相关的包组:}
a. Development Tools
#yum groupinstall "Development Tools"
b. Server Platform Development
#yum groupinstall "Server Platform Development"
c. Desktop Platform Development
#yum groupinstall "Desktop Platform Development"
yum install -y gcc pcre pcre-devel openssl openssl-devel gd gd-devel perl perl-ExtUtils-Embed
2,解决nginx源码
官方网站下载地址:http://nginx.org/download/
3,。安装
./configure --prefix=/usr/local/nginx --with-pcre --user=daemon --group=daemon --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module
make
make install
二、Nginx编译选项
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
1、默认自动编译项 禁用选项Core:Nginx核心功能, --without-httpAccess:基于IP的访问控制 --without-http_access_moduleAuth Basic:HTTP用户认证模块 --without-http_auth_basic_moduleAuto Index:自动目录索引 --without-http_autoindex_moduleBrowser:描述用户代理 --without-http_charset_moduleCharset:重新编码网页 --without-http_charset_moduleEmpty GIF:内存中存放一个图片 --without-http_empty_gif_moduleFastCGI:FastCGI支持 --without-http_fastcgi_moduleGeo:支持IP变量设置 --without-http_geo_moduleGzip:Gzip压缩 --without-http_gzip_moduleLimit Requests:限制客户端连接频率 --without-http_limit_req_moduleLimit Conn:挥发的并发连接 --without-http_limit_conn_moduleMap:设置变量 --without-http_map_moduleMemcached:Memcache支持 --without-http_memcached_moduleReferer:基于Referer头部信息过滤 --without-http_referer_moduleRewrite:使用正则表达式重写请求 --without-http_rewrite_moduleSCGI:支持SCGI协议 --without-http_scgi_moduleUpstream:负载均衡 --without-http_upstream_ip_hash_moduleHeaders:设置http响应的头部信息Index:首页Log:自定义日志 |
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
2、内置模块中的附加模块,需要在编译时手动开启 开启选项Embedded Perl:支持Perl --with-http_perl_moduleFLV:支持Flash视频 --with-http_flv_moduleGeoIP:通过IP变量实现负载均衡 --with-http_geoip_moduleGoogle Perftools:支持谷歌的性能优化工具 --with-google_perftools_moduleGzip Precompression:压缩静态文件 --with-http_gzip_static_moduleImage Filter:转换图形的过滤器 --with-http_image_filter_moduleMP4:支持MP4 --with-http_mp4_moduleReal IP:使用Nginx作为后端服务器 --with-http_realip_moduleSecure Link:使用密匙保护页面 --with-http_secure_link_moduleSSL:支持HTTPS/SSL --with-http_ssl_moduleStub Status:查看服务器状态 --with-http_stub_status_moduleWebDAV:支持WebDAV --with-http_dav_module------------------------------------------Core:邮件代理功能 --with-mailCore:邮件代理功能 --without-mail_pop3_moduleCore:邮件代理功能 --without-mail_imap_moduleCore:邮件代理功能 --without-mail_smtp_module------------------------------------------SSL:支持SSL/TLS加密邮件协议 --with-mail_ssl_module |
nginx源码安装的更多相关文章
- Nginx源码安装及调优配置
导读 由于Nginx本身的一些优点,轻量,开源,易用,越来越多的公司使用nginx作为自己公司的web应用服务器,本文详细介绍nginx源码安装的同时并对nginx进行优化配置. Nginx编译前的优 ...
- Nginx源码安装及调优配置(转)
导读 由于Nginx本身的一些优点,轻量,开源,易用,越来越多的公司使用nginx作为自己公司的web应用服务器,本文详细介绍nginx源码安装的同时并对nginx进行优化配置. Nginx编译前 ...
- nginx源码安装方法
nginx源码安装方法 安装方法如下 1.安装nginx必要的源码依赖软件包. yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zli ...
- nginx 源码安装的重启命令
源码安装nginx就面临这样的麻烦,不能使用service nginx restart 来重启nginx,没办法只能重新加载下nginx. #/usr/local/nginx/sbin/nginx - ...
- nginx源码安装教程(CentOS)
1.说明 官方源码安装说明:http://nginx.org/en/docs/configure.html 源码包下载地址:http://nginx.org/en/download.html 版本说明 ...
- nginx 源码安装以及后续升级https
事情的来源是,公司要将网站从http升级到https,由于历史遗留原因,才发现现有的nginx是通过源码安装的,并没有安装ssl模块,需要现安装sll模块,这个nginx是整个公司最前端的一个代理,涉 ...
- Nginx源码安装配置
Nginx web服务器简介 Nginx ("engine x") 是一个高性能HTTP 和 反向代理 服务器.IMAP.POP3.SMTP 服务器. Nginx 是由 Igor ...
- nginx 源码安装配置详解(./configure)
在"./configure"配置中,"--with"表示启用模块,也就是说这些模块在编译时不会自动构建,"--without"表示禁用模块, ...
- Nginx 源码安装和调优
常见web架构: LAMP =Linux+Apache+Mysql+PHP LNMP =Linux+Nginx+Mysql+PHP nginx概述: 知道:1 不知道:2 Nginx (&q ...
随机推荐
- What algorithm to use to normalize someone's face on image
http://stackoverflow.com/questions/7066104/what-algorithm-to-use-to-normalize-someones-face-on-image
- 两个数组 [n] [m] n>m 第一个数组的数字无序排列 第二个数组为空 取出第一个数组的最小值 放到第二个数组中第一个位置, 依次类推. 不能改变A数组,不能对之进行排序,也不可以倒到别的数组中。
方法一. protected int[] fun() { , , , , , , , -, , , , -, , , , , }; ]; ; ; ; i < b.Length; i++) { i ...
- Android 使用PullToRefreshExpandableListView不能setAdapter的问题
private PullToRefreshExpandableListView lv; lv = (PullToRefreshExpandableListView) findViewById(R.id ...
- Android 开发之如何保证Service不被杀掉(broadcast+system/app)
序言 最近项目要实现这样一个效果:运行后,要有一个service始终保持在后台运行,不管用户作出什么操作,都要保证service不被kill,这可真是一个难题.参考了现今各种定制版的系统和安全厂商牛虻 ...
- 构造方法后面加上了:base
今天看公司软件的代码碰到一个奇怪的方法 ,寻早了各种方法后终于明白了,在构造方法后面加上了:base(message),该类如下: public NONEDIException(string mess ...
- OSG第一个Demo
环境:Vs2010 OpenSceneGraph-3.0.1-VS10.0.30319-x86-debug-12741 OpenSceneGraph-3.0.1-VS10.0.30319-x86-re ...
- box2dweb之关节joint(连接器)
1 概述 前篇基础文章看完后基本上就应该对box2dweb能上手了,下面来介绍一下box2dweb非常重要的一个概念,关节(joint)也有叫连接器的,总之是一个意思.下面是关节详细的类库说明: BO ...
- Tigase Server Clustering
首先,在服务器上启用集群 修改init.properties --cluster-mode=true 自定义端口 允许自定义,但是所有的实例都要使用相同的端口,以便通讯 --cl-comp-ports ...
- 关于解决读取导入excel某列数字过长的科学计数法格式
因为 客户 需要导入 虚拟商品的卡号 excel已经是文本形式的单元格格式了 但是 到后台 java代码去获取的时候 仍然是 科学计数法格式 先找到以下资料做参考:http://love-66521. ...
- java 笔记(1)-—— JVM基础,内存数据,内存释放,垃圾回收,即时编译技术JIT,高精度类型
1.java中5个存放数据的地方: (1).寄存器(Registers):位于CPU内部,是速度最快的存储区,但是数量和容量有限.在java中不能直接操作寄存器. (2).栈(Stack):栈位于通用 ...