添加Nginx官方源
vi /etc/yum.repos.d/nginx.repo
添加如下内容
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1
安装
yum install nginx
添加Nginx官方源
vi /etc/yum.repos.d/nginx.repo
添加如下内容
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/7/$basearch/ gpgcheck=0 enabled=1
安装
yum install nginx
转载于:https://www.cnblogs.com/wolf-sun/p/10918502.html