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
时间: 2024-10-09 18:52:14
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