linux 第11章 rsync常见问题及解决办法 linux 第11章 rsync常见问题及解决办法

2022-07-18

①、错误一:

password file must not be other-accessible
continuing without password file
Password:

rsync客户端路径是否写错,权限设置不对,需要再次输入密码,客户端和服务端的密码文件都应该是600的权限才可以

②、错误二:

@ERROR: Unknown module ‘bak’
rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver= 3.0.3]

服务端server的配置中的[bak]名字和客户端client的10.10.10.10::bak不符

③、错误三:

rsync: failed to connect to 10.10.10.10: Connection timed out (110)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]

检查服务端server服务是否正常启动,检查端口防火墙,iptables打开873端口

如果服务端是windows server则在防火墙入站规则中增加873端口

如果服务端是Linux则先检查服务是否启动#ps aux | grep rsync

然后开启873端口#iptables -A INPUT -p tcp --dport 873 -j ACCEPT开启873端口

附:

安装rsync yum install rsync

启动服务/usr/bin/rsync --daemon

启动服务错误failed to create pid file /var/rsyncd.pid: File exists

看看提示服务错误的路径(这个路径不一定就是这个,看自己的报错路径)这里是/var/rsyncd.pid所以

rm -rf /var/rsyncd.pid;再重新启动Rsync服务

此时在看一下ps aux | grep rsync启动成功

④、错误四:

@ERROR: access denied to gmz88down from unknown (10.10.10.10)
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]

看看是不是服务端server hosts allow限制了IP,把这里的IP加入到服务端server的hosts allow白名单中,windows rsync不能写多个allow,可以在一个allow中加多个IP,例:hosts allow=10.10.10.10 20.20.20.20

⑤、错误五:

@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1503) [receiver=3.0.6]

服务端server的目录不存在或者没有权限(要同步的那个文件路径),安装windows rsync时候会创建一个SvcCWRSYNC用户,这个用户对要拷贝的目录没有权限,方法一,将这个用户给权限加入到目录中,方法二,修改这个用户隶属于的组,修改后要在管理中重启服务

⑥、错误六:

rsync error: error starting clie
nt-server protocol (code 5) at main.c(1524) [Receiver= 3.0.7 ]

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开微信扫一扫,即可进行扫码打赏哦

阅读 588

linux文章

带到手机上看