Linux中rsync客户端连接服务…
来源:互联网 发布:数据库模型设计工具 编辑:程序博客网 时间:2024/06/10 13:19
原文地址:Linux中rsync客户端连接服务端时出错解决方案作者:邓强
rsync: failed to connect to192.168.2.19: Connection refused
rsync error: error in socket IO (code10) 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 size961509180
2012/02/16 09:29:25 [12188] params.c:Parameter() - Ignoringbadly 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 "anthusers"
2012/02/16 09:29:25 [12188] 192.168.2.109 is not a knownaddress 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 size961509180
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,加入rsync873/tcp,指定rsync的服务端口是873
/etc/inetd.conf,加入rsync stream tcpnowait root /bin/rsync rsync --daemon
2、加入rc.local
在各种操作系统中,rc文件存放位置不尽相同,可以修改使系统启动时rsync--daemon加载进去。
3 CLIENT设置
0 0
- Linux中rsync客户端连接服务…
- Linux Rsync 服务配置
- linux 配置 rsync 服务
- linux 安装配置 rsync服务
- Linux下Rsync服务部署
- 编写ftp客户端连接linux自带ftp服务vsftpd中遇到的问题
- rsync linux (中)
- 客户端连接服务
- 配置Rsync Windows 服务端和Linux客户端
- rsync关于Windows服务器linux客户端
- Linux下rsync服务器/客户端搭建实战
- 用ssh客户端连接linux启动服务,客户端关闭服务就断掉问题
- linux中客户端连接与钥匙生成
- rsync 客户端
- 《Linux下rsync服务的深入分析》
- linux rsync服务配置使用实例
- linux安装rsync服务同步数据
- linux下rsync服务的搭建
- mongodb --linux安装
- nginx优化之--隐藏/替换服务…
- nginx优化之--慢连接攻击应…
- 根据IP 即可获得用户所…
- Yii中创建Model时出现的错误…
- Linux中rsync客户端连接服务…
- Linux系统中rsync相关配置
- Linux系统中rsync相关配置
- Linux中mysql的主从服务器配…
- CI框架中的图片上传功能
- SEO网站优化策略
- 开发环境eclipse向idea转变记录。
- PHP框架(codeigniter):数据…
- Linux中select、poll和epoll