yum install epel* -y ftp://192.168.1.105/centos7/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 192.168.1.105:21; 拒绝连接"
时间: 2024-05-18 17:16:10 浏览: 24
这个错误提示表明,yum命令无法连接到指定的FTP服务器,可能是由于以下原因之一:
1. FTP服务器的IP地址不正确,或者FTP服务器上的服务未启动。
2. 防火墙阻止了FTP连接,需要打开FTP端口。
3. FTP服务器上的FTP服务不是在默认的21端口上运行,需要指定正确的端口号。
你可以尝试以下步骤来解决问题:
1. 确认FTP服务器的IP地址是否正确,可以尝试ping一下FTP服务器的IP地址。
2. 检查防火墙设置,确保FTP端口是开放的,或者暂时禁用防火墙,再次尝试yum命令。
3. 如果FTP服务不是在默认的21端口上运行,可以在yum命令中指定正确的端口号,例如:
yum install epel* -y ftp://192.168.1.105:2121/centos7/repodata/repomd.xml
这里假设FTP服务在2121端口上运行。
希望这些步骤能帮助你解决问题。
相关问题
TASK [yum install mariadb zabbix httpd] **************************************** fatal: [192.168.100.112]: FAILED! => {"changed": false, "msg": "Failure talking to yum: failure: repodata/repomd.xml from ftp_centos: [Errno 256] No more mirrors to try.\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\"\nftp://192.168.100.111/centos/repodata/repomd.xml: [Errno 14] curl#7 - \"Failed connect to 192.168.100.111:21; Connection refused\""}
这个错误信息提示了 yum 安装 mariadb、zabbix、httpd 失败了,因为不能连接到 192.168.100.111 的 ftp 服务器,导致无法获取 repodata/repomd.xml 文件。可能是因为 ftp 服务器没有启动,或者防火墙阻止了连接。建议检查 ftp 服务器是否正常运行,并且确认防火墙规则是否正确配置。
https://download.docker.com/linux/centos/docker-ce.rep/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
这个错误通常是由于 Docker CE 的仓库 URL 地址不正确导致的。请确认你的 Docker CE 仓库 URL 地址是否正确,并确保你有访问该 URL 地址的权限。另外,你可以尝试更新你的 yum 包管理器缓存,然后再次安装 Docker CE。具体操作如下:
1. 删除旧的 Docker 仓库配置文件:
```
sudo rm /etc/yum.repos.d/docker-ce.repo
```
2. 更新 yum 包管理器缓存:
```
sudo yum makecache
```
3. 安装 Docker CE:
```
sudo yum install docker-ce
```
如果问题仍然存在,可以尝试找到最新的 Docker CE 仓库 URL 地址并手动更新 `/etc/yum.repos.d/` 目录中的配置文件。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)