2024年6月15日发(作者:)
No package nginx available. |一次解决一个问题
今天在新买的vps上安装nginx时提示没有nginx的包可安装
问题现场
[root@localhost ~]# yum -y install nginx
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons:
* base:
* extras:
* updates:
Setting up Install Process
No package nginx available.
Nothing to do
解决方法
:///search/no-package-nginx-available-yum/
在使用上述方法解决问题时发现,文中指示的 rpm包不可用,下载不了,404
://./faq/rhel-fedora-centos-linux-enable-epel-repo/
上述地址中的方法肯定了必须要解决 EPEL才可以安装nginx,问题转为寻找一个可用的rpm包
问题转为:How Do I Enable EPEL Repo under CentOS or RHEL Servers?
:///3/stat/4/idpl/15297742/dir/fedora_6/com/
使用命令:
rpm
ftp:///systems/linux/fedora/epel/beta/6/i386/
-Uvh
以上内容即可启用EPEL,之后再次yum install nginx即可安装!
最终在此找到大量可用的rpm再次按照链接1文中提到的方法,解决战斗!
发布评论