一、问题:
[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
完美解决问题,家人下次再见~