【centos7.9】yum -y install nginx 提示没有可用软件包 nginx
问题
# yum install nginx -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.nju.edu.cn
* extras: mirrors.nju.edu.cn
* updates: mirrors.nju.edu.cn
没有可用软件包 nginx。
错误:无须任何处理
原因
Nginx位于第三方的yum源里面,而不在Centos官方yum源里面。
解决办法
yum -y install epel-release
yum -y install nginx
至此OK~
THE END
0
二维码
打赏
海报
![](http://www.chillifish.cn/wp-content/uploads/2018/03/WeiXin_Shoukuan_G.png)
![](http://www.chillifish.cn/wp-content/uploads/2018/03/ZhiFuBao_Shoukuan_G.png)
【centos7.9】yum -y install nginx 提示没有可用软件包 nginx
问题
# yum install nginx -y
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.nju.edu.cn
* extras: mirrors.……
![](http://www.chillifish.cn/wp-content/uploads/2018/03/logo_G.png)
共有 0 条评论