目录
一、问题:
[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://blog.csdn.net/m0_64304713/article/details/134466833
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。