使用rsync
进行服务器备份,出现如下错误
rsync: failed to connect to 118.31.65.241 (118.31.65.241): Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(128) [Receiver=3.1.1]
出现这个错误的原因可能因为客户端或者服务端的防火墙开启,导致无法通信,可以设置规则放行 rsync(873端口) 或者直接关闭防火墙。
可以使用telnet
测试下目标服务器的端口是否正常开启
telnet xxxxx 873
如未开启,将防火墙放行873端口
/sbin/iptables -I INPUT -p tcp --dport 873 -j ACCEPT
/etc/rc.d/init.d/iptables save
然后再使用rsync
备份就没什么问题了。
参考地址:
http://www.jb51.net/article/31920.htm
https://shipengliang.com/software-exp/centos-rsync-failed-to-connect-to-x-x-x-x-no-route-to-host-113-%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95.html
如果觉得我的文章对您有用,请您随意打赏。您的支持将鼓励我更加努力创作!
如无特殊声明,文章均为原创,若有不正之处,万望告知。转载请附上原文地址,十分感谢!