05.04 Rsync服务异常错误总结

这篇博客详细总结了rsync服务在运行过程中遇到的各种异常情况,包括iptables防火墙导致的问题、auth失败、模块未知、权限拒绝、chdir失败、无效uid、密码文件失效以及连接慢等错误。针对每个问题,都提供了错误现象的描述和相应的解决步骤,旨在帮助用户有效解决rsync在实际使用中可能遇到的故障。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

第一章 rsync服务端开启的iptables防火墙

1. 【客户端的错误】

No route to host

2. 【错误演示过程】

[root@nfs01 tmp]# rsync -avz /etc/hosts rsync_backup@172.16.1.41::backup
rsync: failed to connect to 172.16.1.41: No route to host (113)
rsync error: error in socket IO (code 10) at clientserver.c(124) [sender=3.0.6]

3.【异常问题解决】
关闭rsync服务端的防火墙服务(iptables)

[root@backup mnt]# /etc/init.d/iptables stop
   iptables: Setting chains to policy ACCEPT: filter          [  OK  ]
   iptables: Flushing firewall rules:                         [  OK  ]
   iptables: Unloading modules:                               [  OK  ]
   [root@backup mnt]# /etc/init.d/iptables status
   iptables: Firewall is not running.

第二章 rsync客户端执行rsync命令错误

1. 【客户端的错误现象】

   [root@nfs01 tmp]# rsync -avz /etc/hosts rsync_backup@172.16.1.41::/backup
   ERROR: The remote path must start with a module name not a /
   rsync error: error starting client-server protocol (code 5) at main.c(1503) [sender=3.0.6]

2. 【异常问题解决】

rsync命令语法理解错误,::/backup是错误的语法,应该为::backup(rsync模块)

第三章 @ERROR: auth failed on module oldboy

1. 【客户端的错误现象】

[root@nfs01 tmp]# rsync -avz /etc/hosts 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值