rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpmnginx
安裝一個支持nginx的yum源包centos
[root@localhost ~]# yum install -y nginxide
[root@localhost ~]# /etc/init.d/nginx start.net
原文地址:https://my.oschina.net/wangt10/blog/630534blog