rsync: failed to connect to 192.168.2.9: Connection refused
2012-04-05 21:56
351 查看
rsync: failed to connect to 192.168.2.19: Connection refused rsync error: error in socket IO (code 10) at clientserver.c(107) [receiver=2.6.8] [root@syw ~]# tail -f /var/log/rsyncd.log 2012/02/16 09:28:25 [12150] rsync on rsyncd from UNKNOWN (192.168.2.109) 2012/02/16 09:28:25 [12150] sent 155803 bytes received 73 bytes total size 961509180 2012/02/16 09:29:25 [12188] params.c:Parameter() - Ignoring badly formed line in configuration file: ignore errors 2012/02/16 09:29:25 [12188] Unknown Parameter encountered: "anth users" 2012/02/16 09:29:25 [12188] IGNORING unknown parameter "anth users" 2012/02/16 09:29:25 [12188] 192.168.2.109 is not a known address for "localhost.localdomain": spoofed address? 2012/02/16 09:29:25 [12188] connect from UNKNOWN (192.168.2.109) 2012/02/16 09:29:25 [12188] rsync on rsyncd from UNKNOWN (192.168.2.109) 2012/02/16 09:29:25 [12188] sent 155803 bytes received 73 bytes total size 961509180 2012/02/17 21:52:48 [16079] rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync.c(260) [receiver=2.6.8] rsync忽然不同步,试过很多方法,修改/etc/rsyncd.conf的UID,GID,修改/etc/rsyncd.secrets均无效 重启xinetd守护进程均无效,最后发现rsync server端口没有启动 最后在server段执行 [root@syw ~]# rsync --daemon后 client成功同步 在server端将rsync以守护进程形式启动 [root~]# rsync --daemon 如果要在启动时把服务起来,有几种不同的方法: 1、加入inetd.conf vi /etc/services,加入rsync 873/tcp,指定rsync的服务端口是873 /etc/inetd.conf,加入rsync stream tcp nowait root /bin/rsync rsync --daemon 2、加入rc.local 在各种操作系统中,rc文件存放位置不尽相同,可以修改使系统启动时rsync --daemon加载进去。 3 CLIENT设置 如果CLIENT想不输入RSYNC的密码而自动同步的话,可以设置一个秘密文件: 可以用--password-file=/password/path/file来指定密码文件,这样就可以在脚本中使 用而无需交互式地输入验证密码了,这里需要注意的是这份密码文件权限属性要设得只有属主可读。 -vzrtopg里的v是verbose,z是压缩,r是recursive, topg都是保持文件原有属性,属主、时间等参数。 --progress是指显示出详细的进度过程, --delete是指如果服务器端删除了这一文件,那么客户端也相应把文件删除,保持真正的一致。
相关文章推荐
- rsync: failed to connect to 192.168.2.9: Connection refused
- rsync: failed to connect to 192.168.19.160: No route to host (113)
- rsync同步失败: rsync: failed to connect to xxx: Permission denied (13)解决方法
- rsync: failed to connect to X.X.X.X: No route to host (113)
- rsync: failed to connect to x.x.x.x: Connection refused (111)
- rsync: failed to connect to x.x.x.x: No route to host (113)
- rsync: failed to connect to X.X.X.X: No route to host (113)
- rsync: failed to connect to X.X.X.X: No route to host (113)
- rsync: failed to connect to x.x.x.x: Connection refused (111)
- rsync: failed to connect to
- rsync错误处理-failed to connect to 192.168.xxx.xxx: Connection refused (111)
- rsync: failed to connect to X.X.X.X: No route to host (113)
- Oracle Data Guard PING[ARC2] 4000 : Heartbeat failed to connect to standby ''. Error is 12514 故障分析
- Get value from agent failed: cannot connect to [[ip]:10050]: no rout host
- nginx之connect() failed (110: Connection timed out) while connecting to upstream
- Flash Id error.Expected 0x1cc2249,found:0x7f22449 Failed to connect.
- 【Android Studio】Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-2.xml, reason: Connect
- javax.mail.AuthenticationFailedException: failed to connect 异常
- nginx 报错 connect() failed (111: Connection refused) while connecting to upstream
- Failed to connect sshd on "10.6.x6.29:99"ProxyHTTP:java.io.IOException:proxy error:Service Unavailab