Rsync同步报错【rsync: failed to connect to 192.168.8.152 (192.168.8.152): No route to host (113)】
程序员文章站
2022-03-12 18:58:03
...
Rsync同步报错【rsync: failed to connect to 192.168.8.152 (192.168.8.152): No route to host (113)】
[[email protected] ~]# rsync -avz /data [email protected]::data
rsync: failed to connect to 192.168.8.152 (192.168.8.152): No route to host (113)
rsync error: error in socket IO (code 10) at clientserver.c(125) [sender=3.1.2]
解决办法:
①telnet 192.168.8.152 873
如果telnet
不通,说明873
端口未开。【登录192.168.8.152
主机,查看下873
端口情况】
# ping的通,但是telnet不通,估计就是873端口没开放了
[[email protected] ~]# telnet 192.168.8.152 873
Trying 192.168.8.152...
telnet: connect to address 192.168.8.152: No route to host
[[email protected] ~]# ping 192.168.8.152
PING 192.168.8.152 (192.168.8.152) 56(84) bytes of data.
64 bytes from 192.168.8.152: icmp_seq=1 ttl=64 time=0.526 ms
^C
--- 192.168.8.152 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.526/0.526/0.526/0.000 ms
②检查192.168.8.152
主机的相关配置文件
如果存在/etc/xinetd.d/rsync
文件,看看disable
的值是否为no
③使用以下命令查看192.168.8.152
主机的873
端口号情况
[[email protected] ~]# netstat -antup | grep 873
[[email protected] ~]# ps -ef | grep rsync
root 12071 8954 0 12:43 pts/0 00:00:00 grep --color=auto rsync
上一篇: Gzip压缩