nginx repomd.xml 404 未找到

nginx repomd.xml 404 未找到

我按照以下位置的说明设置了 nginx 存储库http://wiki.nginx.org/Install

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/rhel/$releasever/$basearch/
gpgcheck=0
enabled=1

当我尝试安装 php-fpm 时,出现以下错误

http://nginx.org/packages/rhel/6Server/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: nginx. Please verify its path and try again

我可以替代它的另一个稳定的 baseurl 是什么?

答案1

请完整阅读说明:

Due to differences between how CentOS, RHEL, and Scientific Linux populate the
$releasever variable, it is necessary to manually replace $releasever with either 
"5" (for 5.x) or "6" (for 6.x), depending upon your OS version. 

相关内容