CentOS 6.5 安装 Nginx 1.7.8 教程
来源:互联网 发布:象棋奇兵软件下载 编辑:程序博客网 时间:2024/06/06 00:40
转自:http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=29791971&id=4702007
Nginx是一款轻量级的Web 服务器/反向代理服务器及电子邮件(IMAP/POP3)代理服务器,由俄罗斯的程序设计师Igor Sysoev所开发,其特点是占有内存少,并发能力强,第一个公开版本0.1.0发布于2004年10月4日,目前最新版本是2014年12月2日发布的1.7.8。
今天在ttlsa网站里学习了Nginx的安装方法,在虚拟机里测试过,然后又在服务器上安装了一遍,下面我把安装过程总结一下。
Linux系统:Centos 6.5 x64
Nginx版本:1.7.8
1、安装prce(重定向支持)和openssl(https支持,如果不需要https可以不安装。)
- yum -y install pcre*
- yum -y install openssl*
2、下载nginx 1.7.8
- wget http://nginx.org/download/nginx-1.7.8.tar.gz
- tar -zxvf nginx-1.7.8.tar.gz
- cd nginx-1.7.8
- ./configure --prefix=/usr/local/nginx-1.5.1 \
- --with-http_ssl_module --with-http_spdy_module \
- --with-http_stub_status_module --with-pcre
- make
- make install
- /usr/local/nginx-1.7.8/sbin/nginx
- /usr/local/nginx-1.7.8/sbin/nginx -s reload
- /usr/local/nginx-1.7.8/sbin/nginx -s stop
- service iptables stop
- vi /etc/sysconfig/iptables
- -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
- service iptables restart
Welcome to nginx!
0 0
- CentOS 6.5 安装 Nginx 1.7.8 教程
- CentOS 6.5 安装 Nginx 1.7.8 教程
- CentOS 6.5 安装 Nginx 1.7.8 教程
- CentOS 6.5 安装 Nginx 1.7.8 教程
- CentOS 6.5 安装 Nginx 1.7.8 教程
- CentOS 6.5 安装 Nginx 1.7.8 教程
- CentOS 6.5 安装 Nginx 1.7.8 教程
- CentOS 6.5 安装 Nginx 1.7.8 教程 (转)
- centos 6.5 安装 nginx
- Centos 6.5 安装Nginx
- centOS 6.5 安装Nginx
- NGINX CENTOS 6.5 安装
- 学习-在Centos下安装Nginx教程
- 在Centos下安装Nginx教程
- CentOS 6.5 安装Nginx 1.7.4
- CentOS 6.5 安装Nginx 1.7.4
- CentOS安装Nginx 1.7.4
- centos 6.5 nginx安装备忘
- Retrofit 使用心得-初次接触-get请求
- 散列表的初步实现
- HDU 3062 Party (2-SAT入门)
- smartforms在不同语言下翻译
- 智能指针 -- 循环引用
- CentOS 6.5 安装 Nginx 1.7.8 教程
- row, merge,displayalerts:获取行数,合并,提示框
- HDU 5547 Sudoku ( 非DFS,利用数独思路来搞 )
- jmter各路好文
- [RabbitMQ+Python入门经典] 兔子和兔子窝
- Scrapy安装、爬虫入门教程、爬虫实例(豆瓣电影爬虫)
- poj 2524 Ubiquitous Religions
- 内排序-选择类排序-简单选择排序
- Android LCD(四):LCD驱动调试篇