原因
腾讯云的epel源是默认下载就是Fedora的
解决方法
准备工作
sudo yum install yum-utils
创建nginx.repo文件
sudo vim /etc/yum.repos.d/nginx.repo
并添加以下内容
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
安装nginx
参考链接:
http://nginx.org/en/linux_packages.html