8-06 3,105 views
"1"
键入命令 # vim /etc/yum.repos.d/nginx.repo
输入如下内容:
输入如下内容:
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1
"二"
执行 yum update .
yum install nginx