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-http
Access:基于IP的访问控制                    --without-http_access_module
Auth Basic:HTTP用户认证模块                --without-http_auth_basic_module
Auto Index:自动目录索引                    --without-http_autoindex_module
Browser:描述用户代理                        --without-http_charset_module
Charset:重新编码网页                        --without-http_charset_module
Empty GIF:内存中存放一个图片                --without-http_empty_gif_module
FastCGI:FastCGI支持                        --without-http_fastcgi_module
Geo:支持IP变量设置                            --without-http_geo_module
Gzip:Gzip压缩                                --without-http_gzip_module
Limit Requests:限制客户端连接频率            --without-http_limit_req_module
Limit Conn:挥发的并发连接                    --without-http_limit_conn_module
Map:设置变量                                --without-http_map_module
Memcached:Memcache支持                        --without-http_memcached_module
Referer:基于Referer头部信息过滤            --without-http_referer_module
Rewrite:使用正则表达式重写请求                --without-http_rewrite_module
SCGI:支持SCGI协议                            --without-http_scgi_module
Upstream:负载均衡                            --without-http_upstream_ip_hash_module
Headers:设置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_module
FLV:支持Flash视频                                --with-http_flv_module
GeoIP:通过IP变量实现负载均衡                    --with-http_geoip_module
Google Perftools:支持谷歌的性能优化工具        --with-google_perftools_module
Gzip Precompression:压缩静态文件                --with-http_gzip_static_module
Image Filter:转换图形的过滤器                    --with-http_image_filter_module
MP4:支持MP4                                    --with-http_mp4_module
Real IP:使用Nginx作为后端服务器                --with-http_realip_module
Secure Link:使用密匙保护页面                    --with-http_secure_link_module
SSL:支持HTTPS/SSL                                 --with-http_ssl_module
Stub Status:查看服务器状态                        --with-http_stub_status_module
WebDAV:支持WebDAV                                --with-http_dav_module
------------------------------------------
Core:邮件代理功能                                --with-mail
Core:邮件代理功能                                --without-mail_pop3_module
Core:邮件代理功能                                --without-mail_imap_module
Core:邮件代理功能                                --without-mail_smtp_module
------------------------------------------
SSL:支持SSL/TLS加密邮件协议                    --with-mail_ssl_module

nginx源码安装的更多相关文章

  1. Nginx源码安装及调优配置

    导读 由于Nginx本身的一些优点,轻量,开源,易用,越来越多的公司使用nginx作为自己公司的web应用服务器,本文详细介绍nginx源码安装的同时并对nginx进行优化配置. Nginx编译前的优 ...

  2. Nginx源码安装及调优配置(转)

      导读 由于Nginx本身的一些优点,轻量,开源,易用,越来越多的公司使用nginx作为自己公司的web应用服务器,本文详细介绍nginx源码安装的同时并对nginx进行优化配置. Nginx编译前 ...

  3. nginx源码安装方法

    nginx源码安装方法 安装方法如下 1.安装nginx必要的源码依赖软件包. yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zli ...

  4. nginx 源码安装的重启命令

    源码安装nginx就面临这样的麻烦,不能使用service nginx restart 来重启nginx,没办法只能重新加载下nginx. #/usr/local/nginx/sbin/nginx - ...

  5. nginx源码安装教程(CentOS)

    1.说明 官方源码安装说明:http://nginx.org/en/docs/configure.html 源码包下载地址:http://nginx.org/en/download.html 版本说明 ...

  6. nginx 源码安装以及后续升级https

    事情的来源是,公司要将网站从http升级到https,由于历史遗留原因,才发现现有的nginx是通过源码安装的,并没有安装ssl模块,需要现安装sll模块,这个nginx是整个公司最前端的一个代理,涉 ...

  7. Nginx源码安装配置

    Nginx web服务器简介 Nginx ("engine x") 是一个高性能HTTP 和 反向代理 服务器.IMAP.POP3.SMTP 服务器. Nginx 是由 Igor ...

  8. nginx 源码安装配置详解(./configure)

    在"./configure"配置中,"--with"表示启用模块,也就是说这些模块在编译时不会自动构建,"--without"表示禁用模块, ...

  9. Nginx 源码安装和调优

    常见web架构: LAMP  =Linux+Apache+Mysql+PHP LNMP  =Linux+Nginx+Mysql+PHP   nginx概述: 知道:1  不知道:2 Nginx (&q ...

随机推荐

  1. extern 和 static和 今天的一些代码,12-03

    这是关于标识符的链接属性的,链接属性只有三种:external, internal, none 改变规则: 3.1 文件作用域的变量和函数定义,即在所有 代码块和参数列表之外的标识符,使用static ...

  2. Windows下mysql忘记密码的解决方法

    Windows下mysql忘记密码的解决方法 mysql5.0 http://www.jb51.net/article/21984.htm方法一: 1.在DOS窗口下输入 net stop mysql ...

  3. angularjs 获取地址传参

    .controller('CityCtrl', function ($scope, $location,$ionicModal) { 注入location服务 $scope.name = $locat ...

  4. nginx的内存管理

    先来看内存池的实现,nginx的内存池实现的非常简单. 这里内存池的一些图表可以看老朱同学的slides : http://blog.zhuzhaoyuan.com/2009/09/nginx-int ...

  5. Thinkphp关闭缓存方法总结(转)

    ThinkPHP在数据缓存方面包括文件方式.共享内存方式和数据库方式在内的多种方式进行缓存,通过插件方式还可以增加以后需要的缓存类,让应用开发可以选择更加适合自己的缓存方式,从而有效地提高应用执行效率 ...

  6. Java基础之处理事件——添加工具栏(Sketcher 7 with File toolbar buttons)

    控制台程序. 工具栏在应用程序窗口中通常位于内容面板顶部的菜单栏下,包含直接访问菜单选项的按钮.在Sketcher程序中可以为最常用的菜单项添加工具栏. 工具栏是javax.swing.JToolBa ...

  7. PostgreSQL Replication之第十二章 与Postgres-XC一起工作(4)

    12.4 性能优化 Postgres-XC不是一个奇特的PostgreSQL版本,而是一个真正的分布式系统.这意味这,您不能只存储数据,希望事情超出服务器之外的快速,高效.如果您想优化速度,思考数据是 ...

  8. zoj The 12th Zhejiang Provincial Collegiate Programming Contest Capture the Flag

    http://acm.zju.edu.cn/onlinejudge/showContestProblem.do?problemId=5503 The 12th Zhejiang Provincial ...

  9. [原创]java WEB学习笔记77:Hibernate学习之路---Hibernate 版本 helloword 与 解析,.环境搭建,hibernate.cfg.xml文件及参数说明,持久化类,对象-关系映射文件.hbm.xml,Hibernate API (Configuration 类,SessionFactory 接口,Session 接口,Transaction(事务))

    本博客的目的:①总结自己的学习过程,相当于学习笔记 ②将自己的经验分享给大家,相互学习,互相交流,不可商用 内容难免出现问题,欢迎指正,交流,探讨,可以留言,也可以通过以下方式联系. 本人互联网技术爱 ...

  10. SQL事物

    事务:保障流程的完整执行就像银行取钱,先在你账上扣钱,然后存入别人的账上:但是从你账上扣完钱了,突然网断了,对方没有收到钱,那么此时你的钱也没了,别人的钱也没加上,为了防止此类情况的出现,事务. be ...