先安裝nginx的yum源 html
http://nginx.org/en/linux_packages.html#stable 找到連接,安裝: linux
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
查看: nginx
yum info nginx
安裝: centos
yum install nginx
service nginx start