
linux centos安装nginx提示:
Setting up Install Process
No package nginx available.
Error: Nothing to do
如下图:
解决方法:
1.安装epel(Extra Packages for Enterprise Linux)
我的系统是centos5,cpu是x86_64
所以我下载是:
wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm centos6系统下载地址: wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
2.安装epel
执行:rpm -ivh epel-release-5-4.noarch.rpm
再次执行 yum install nginx,则会提示安装成功了
如执行命令报:Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
请参考:http://IDC.NET/2016/04/22/425.html 内详解决方案
本教程由铁网维原创出品 服务器运维官方网址http://IDC.NET 欢迎大家多多关注本站 感谢大家的支持。
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/182186.html<