CentOS 6.5 安装 Nginx 1.7.8 教程 (转)
来源:互联网 发布:还珠之知画重生 编辑:程序博客网 时间:2024/06/16 20:46
按照博主的方法配置后可以启动成功。就把这个给转发一下,供以后使用
博主网址:http://blog.chinaunix.net/uid-29791971-id-4702007.html
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!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.
Thank you for using 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 编译安装LNMP环境(Nginx+MySQL+PHP)教程
- 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 6.5安装Nginx (一)
- 缓存常用算法及实现原理
- Spark内核源码深度剖析:SparkContext原理剖析与源码分析
- Jenkins日程配置说明
- Mac使用dinghy和laradock搭建php运行环境
- BZOJ 2821 作诗 [区间众数]
- CentOS 6.5 安装 Nginx 1.7.8 教程 (转)
- Python 3从入门到精通4-while循环
- linux下的svn学习
- 【maven】之使用import scope解决maven继承(单)问题
- 机器学习笔记之应用于线性回归的梯度下降算法
- [Leetcode] 277. Find the Celebrity 解题报告
- ES6 -- Iterator 的基本用法
- PostgreSQL错误解决:ERROR: current transaction is aborted, commands ignored until end of transaction bloc
- nginx的配置、虚拟主机、负载均衡和反向代理(3)