首页 > 代码库 > yum 安装nginx

yum 安装nginx

1.下载一个rpm包

wget http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm

2 .安装这个rpm包

rpm -ivh nginx-release-centos-6-0.el6.ngx.noarch.rpm 

3 开始正式安装nginx

yum install nginx

yum 安装nginx