直接yum install nginx不行,要先处理下源,下面是安装完整流程
1.
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
2.
查看yum的nginx信息
yum info nginx
3.
安装并启动nignx
yun install nignx
service nginx start
直接yum install nginx不行,要先处理下源,下面是安装完整流程
1.
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
2.
查看yum的nginx信息
yum info nginx
3.
安装并启动nignx
yun install nignx
service nginx start