先安装nginx的yum源
http://nginx.org/en/linux_packages.html#stable
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
查看:
yum info nginx
安装:
yum install nginx
安装完成后nginx就已经启动了,可以查看进程:
启动nginx:
service nginx start