1. 服务端主动同步文件至客户端时报错
有以下三个错误
错误1:
rsync: failed to set times on "." (in common): Operation not permitted
解决方案:在rsyncd.conf配置文件中添加
fake super = yes
错误2:
rsync: read error: Connection reset by peer (104) sync error: error in socket IO (code 10) at io.c(785) [sender=3.1.2]
解决方案:在rsyncd.conf配置文件中将只读设置为no
read only = no
错误3:
rsync: recv_generator: mkdir "data" (in common) failed: Permission denied
解决方案:将文件所属权限用户(一般是root)和uid、gid统一
uid = root gid = root
2. 启动rsync后,无进程
正常启动
而本次启动时
就只有这一行
解决方案:
- 检查rsyncd.conf配置文件的完整性
- 查看address = 192.168.xxx.xxx 是否为本机ip