scp时遇到两个问题
一、error in socket IO (code 10) at clientserver.c(124)
1、先检查服务是否启动 #ps aux | grep rsync,未启动,需要先安装再启动
#安装
rsync yum install rsync
#启动服务
/usr/bin/rsync --daemon
2、查看防火墙是否开着,如果开着,需要打开打开873端口
3、看看能不能ping通,ping不通需要开ACL权限
二、@ERROR: Unknown module 'xxx' ;rsync error: error starting client-server protocol (code 5) at main.c(1503)
参考:rsync error:error starting client-server protocol(code 5) at main.c(1503)_huohuanyu1的博客-CSDN博客
解决思路,找到配置文件(我服务器是/etc/rsyncd.conf ),添加xxx模块配置:
[xxx]
path = /www/web/xxx
comment = web
ignore errors
read only = no
list = no
transfer logging = no