目录
一、问题:
二、原因:
三、解决方法:
一、问题:
[root@localhost ~]# yum -y install nginx
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.bfsu.edu.cn
* extras: mirrors.huaweicloud.com
* updates: mirrors.huaweicloud.com
没有可用软件包 nginx。
错误:无须任何处理
二、原因:
Nginx位于第三方的yum源里面,而不在CentOs官方yum源里面。
三、解决方法:
yum源安装epel
yum -y install epel-release
重新安装Nginx即可。
yum -y install nginx
文章来源:https://www.toymoban.com/news/detail-771700.html
安装成功啦~文章来源地址https://www.toymoban.com/news/detail-771700.html
到了这里,关于完美解决:yum -y install nginx 报出 没有可用软件包 nginx。错误:无须任何处理的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!