首页 > 其他 > 详细

Nginx Yum 安装

时间:2016-06-24 13:00:55      阅读:192      评论:0      收藏:0      [点我收藏+]
针对 CentOS 6.3

1、配置repo源
$ cat /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/6/$basearch/
gpgcheck=0
enabled=1

安装
$ yum install nginx


2、nginx配置文件:
$ cat /etc/nginx/nginx.conf

3、启动
/etc/init.d/nginx start

4、关闭防火墙
service iptables stop

5、注册启动Nginx服务
 chkconfig iptables off
 chkconfig nginx on


Nginx Yum 安装

原文:http://tengq.blog.51cto.com/2004324/1792483

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!