【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
二维码
打赏
海报


【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.……

共有 0 条评论