rsync error: error in socket IO (code 10) at socket.c(555) [Receiver=3.1.2]
1.背景:主机环境centos7.6,修改了/etc/rsyncd.conf配置文件后重启rsyncd服务 (daemo模式)报错,确认修改的配置也没错
查看/var/log/rsync.log报错信息看到rsync error: error in socket IO (code 10) at socket.c(555) [Receiver=3.1.2]
2.网上看了下说是防火墙或者selinux的原因,我这里防火墙默认和selinux默认就是关闭的。
3.解决方案:想到之前有启动过,systemctl rstart rsyncd不生效。查看了下进程果然在这里,杀掉这个进程后重启就可以了
[root@backup ~]# ps -elf | grep rsync | grep -v grep
5 S root 8049 1 0 80 0 - 28686 poll_s 18:08 ? 00:00:00 rsync --daemon
[root@backup ~]# kill -9 8049
[root@backup ~]# systemctl restart rsyncd #杀掉进程后服务
[root@backup ~]# systemctl status rsyncd #再次重启配就可以了
● rsyncd.service - fast remote file copy program daemon
Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; disabled; vendor preset: disabled)
Active: active (running) since 四 2021-01-28 19:00:10 CST; 10s ago
Main PID: 8797 (rsync)
CGroup: /system.slice/rsyncd.service
└─8797 /usr/bin/rsync --daemon --no-detach
总结:找到rsyncd的守护进程,杀掉然后再重启即可
标签: