完美解决:yum -y install nginx 报出 没有可用软件包 nginx。错误:无须任何处理
一、问题:
[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
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_47885327/article/details/143003942
浙公网安备 33010602011771号