ftp://192.168.100.10/centos/repodata/repomd.xml: [Errno 14] curl#7 - "Failed connect to 192.168.100.10:21; 没有到主机的路由"
时间: 2023-05-25 12:02:43 浏览: 641
ftp://192.168.100.10/centos/repodata/repomd.xml出现了错误,错误代码是[Errno 14]。这通常是由于网络连接问题导致的。可能是无法连接到该地址,或者连接速度太慢。
相关问题
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 服务器是否正常运行,并且确认防火墙规则是否正确配置。
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; 拒绝连接"
这个错误提示表明,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端口上运行。
希望这些步骤能帮助你解决问题。
相关推荐
![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)