- 浏览: 49610 次
- 性别:
- 来自: 上海
最新评论
服务器端配置文件:
首先安装rsync+xinetd
并启用/usr/bin/rsync --daemon
配置文件如下:
more /etc/rsyncd.conf
list = yes
uid = root
gid = root
use chroot = no
#strict modes = false
host_allow = *
max connections =200
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
#secrets file=/etc/rsyncd.secrets
[test]
path = /root/Test
read only = no
transfer logging = yes
下面配置文件:
more /etc/xinetd.d/rsync
# default: off
# description: The rsync server is a good addition to an ftp server, as it \
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
改更要重启的: service xinetd restart
客户端可能会存在以下报错。
[root@localhost /]# rsync -vzrtopg --delete --progress rsync\@192.168.1.106::test /cc
rsync: failed to connect to 192.168.1.106: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]
改了之后,客户端就可以正常同步了。
还有一个以下报错。
[root@localhost Test]# rsync -vzrtopg --delete --progress rsync\@192.168.1.106::test /Test
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
以下内容来自http://tonykorn97.itpub.net/post/6414/462027
停止掉xinetd后查看端口的占用状态:
[root@tonykorn xinetd.d]# /etc/init.d/xinetd status
xinetd (pid 16964) is running...
[root@tonykorn xinetd.d]# /etc/init.d/xinetd stop
Stopping xinetd: [ OK ]
[root@tonykorn xinetd.d]# netstat -na | grep 873
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN
unix 3 [ ] STREAM CONNECTED 76873
[root@tonykorn xinetd.d]#
查看那个程序在使用这个端口:
[root@tonykorn xinetd.d]# netstat -lnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:4001 0.0.0.0:* LISTEN 7376/backprice
tcp 0 0 0.0.0.0:8033 0.0.0.0:* LISTEN 3443/nsrindexd
tcp 0 0 0.0.0.0:7937 0.0.0.0:* LISTEN 3357/nsrexecd
tcp 0 0 0.0.0.0:4002 0.0.0.0:* LISTEN 7374/backpos
tcp 0 0 0.0.0.0:7938 0.0.0.0:* LISTEN 3354/nsrexecd
tcp 0 0 0.0.0.0:4004 0.0.0.0:* LISTEN 7387/tranmember
tcp 0 0 0.0.0.0:13253 0.0.0.0:* LISTEN 3358/lgtolmd
tcp 0 0 0.0.0.0:9382 0.0.0.0:* LISTEN 3361/nsrd
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 2811/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2772/portmap
查找那个程序启动的这个端口,关闭这个服务
[root@tonykorn xinetd.d]# chkconfig --list | grep nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
[root@tonykorn xinetd.d]# service nfslock status
rpc.statd (pid 2811) is running...
[root@tonykorn xinetd.d]# service nfslock stop
Stopping NFS statd: [ OK ]
[root@tonykorn xinetd.d]# netstat -lnp | grep 873
[root@tonykorn xinetd.d]# netstat -na | grep 873
[root@tonykorn xinetd.d]#
重新启动xinetd服务
[root@tonykorn xinetd.d]# /etc/init.d/xinetd start
Starting xinetd: [ OK ]
[root@tonykorn xinetd.d]# vi /var/log/messages
May 15 13:27:50 tonykorn rpc.statd[2811]: Caught signal 15, un-registering and exiting.
May 15 13:28:52 tonykorn xinetd[18304]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
May 15 13:28:52 tonykorn xinetd[18304]: Started working: 3 available services
从日志上可以看到服务器已经启动。
经过这上面的提示,后解决了。
出现如下错误:
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [sender=2.6.8]
原因及解决方法:
test文件没有建,建后,同步成功。
还可能存在的问题
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]
原因及解决办法:
SELinux;
setsebool -P rsync_disable_trans on
首先安装rsync+xinetd
并启用/usr/bin/rsync --daemon
配置文件如下:
more /etc/rsyncd.conf
list = yes
uid = root
gid = root
use chroot = no
#strict modes = false
host_allow = *
max connections =200
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
#secrets file=/etc/rsyncd.secrets
[test]
path = /root/Test
read only = no
transfer logging = yes
下面配置文件:
more /etc/xinetd.d/rsync
# default: off
# description: The rsync server is a good addition to an ftp server, as it \
# allows crc checksumming etc.
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
改更要重启的: service xinetd restart
客户端可能会存在以下报错。
[root@localhost /]# rsync -vzrtopg --delete --progress rsync\@192.168.1.106::test /cc
rsync: failed to connect to 192.168.1.106: Connection refused (111)
rsync error: error in socket IO (code 10) at clientserver.c(124) [receiver=3.0.6]
改了之后,客户端就可以正常同步了。
还有一个以下报错。
[root@localhost Test]# rsync -vzrtopg --delete --progress rsync\@192.168.1.106::test /Test
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(600) [receiver=3.0.6]
以下内容来自http://tonykorn97.itpub.net/post/6414/462027
停止掉xinetd后查看端口的占用状态:
[root@tonykorn xinetd.d]# /etc/init.d/xinetd status
xinetd (pid 16964) is running...
[root@tonykorn xinetd.d]# /etc/init.d/xinetd stop
Stopping xinetd: [ OK ]
[root@tonykorn xinetd.d]# netstat -na | grep 873
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN
unix 3 [ ] STREAM CONNECTED 76873
[root@tonykorn xinetd.d]#
查看那个程序在使用这个端口:
[root@tonykorn xinetd.d]# netstat -lnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:4001 0.0.0.0:* LISTEN 7376/backprice
tcp 0 0 0.0.0.0:8033 0.0.0.0:* LISTEN 3443/nsrindexd
tcp 0 0 0.0.0.0:7937 0.0.0.0:* LISTEN 3357/nsrexecd
tcp 0 0 0.0.0.0:4002 0.0.0.0:* LISTEN 7374/backpos
tcp 0 0 0.0.0.0:7938 0.0.0.0:* LISTEN 3354/nsrexecd
tcp 0 0 0.0.0.0:4004 0.0.0.0:* LISTEN 7387/tranmember
tcp 0 0 0.0.0.0:13253 0.0.0.0:* LISTEN 3358/lgtolmd
tcp 0 0 0.0.0.0:9382 0.0.0.0:* LISTEN 3361/nsrd
tcp 0 0 0.0.0.0:873 0.0.0.0:* LISTEN 2811/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2772/portmap
查找那个程序启动的这个端口,关闭这个服务
[root@tonykorn xinetd.d]# chkconfig --list | grep nfs
nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
[root@tonykorn xinetd.d]# service nfslock status
rpc.statd (pid 2811) is running...
[root@tonykorn xinetd.d]# service nfslock stop
Stopping NFS statd: [ OK ]
[root@tonykorn xinetd.d]# netstat -lnp | grep 873
[root@tonykorn xinetd.d]# netstat -na | grep 873
[root@tonykorn xinetd.d]#
重新启动xinetd服务
[root@tonykorn xinetd.d]# /etc/init.d/xinetd start
Starting xinetd: [ OK ]
[root@tonykorn xinetd.d]# vi /var/log/messages
May 15 13:27:50 tonykorn rpc.statd[2811]: Caught signal 15, un-registering and exiting.
May 15 13:28:52 tonykorn xinetd[18304]: xinetd Version 2.3.14 started with libwrap loadavg labeled-networking options compiled in.
May 15 13:28:52 tonykorn xinetd[18304]: Started working: 3 available services
从日志上可以看到服务器已经启动。
经过这上面的提示,后解决了。
出现如下错误:
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [sender=2.6.8]
原因及解决方法:
test文件没有建,建后,同步成功。
还可能存在的问题
@ERROR: chdir failed
rsync error: error starting client-server protocol (code 5) at main.c(1296) [receiver=2.6.8]
原因及解决办法:
SELinux;
setsebool -P rsync_disable_trans on
发表评论
-
ES安装部署
2021-01-11 11:01 244一,准备工作 1,Es下载链接 https://mirro ... -
计算机基础
2021-01-11 10:53 4141、计算机完整的体系结 ... -
KVM详细安装
2016-02-22 09:59 700KVM详细安装 安装KVM yum -y install q ... -
linux for
2015-09-23 15:44 0for ((i=0;i<10000;i++)); do ... -
sendmail无法发送邮件
2013-07-25 11:57 937sendmail无法发送邮件 后面经过修改。 vi /etc/ ... -
msmtp
2013-06-06 10:43 804原来一直在Linux下使 ... -
sysctl优化脚本
2012-12-28 12:32 927#!/bin/sh sysctl -w net.ipv4.n ... -
linux date
2012-12-19 12:04 766linux date 我使用过的Linux命令之date - ... -
http错误
2012-07-26 17:09 9111xx - 信息提示 这些状态代码表示临时的响应。客户端在收到 ... -
nagios最新详细安装
2012-08-11 11:46 1649nagios最新详细安装 第一部分: 一、开发库等安装 首 ... -
centos_5中文语言包安装
2012-07-06 14:57 636第一:中文语言包: 在一台机子上装了centos 5,刚开始没 ... -
linux包批量安装
2012-06-30 10:09 709yum groupinstall "KDE (K D ... -
Linux系统信息查看命令大全
2012-06-30 09:59 1385系统 # uname -a # 查看内 ... -
python交互式自动部署
2012-06-26 09:06 1767python交互式自动部署 1、首先要做ssh互相信息 2、 ... -
linux下安装expect
2012-06-16 16:29 1360linux下安装expect expect ... -
python一些组件的安装
2012-06-16 16:17 5643paramiko是python(2.2或更高)的模块,遵循SS ... -
ssh不需要密码登录
2012-06-15 09:31 827ssh不需要密码登录 A为登录B、C、D三台机器 A的相关配置 ... -
MegaCli安装
2012-06-13 17:50 0下载地址:wget http://www.eth0.us/fi ... -
mysql快速安装
2012-06-01 16:08 874一、快速安装mysql准备工作 首先需要保证自己的开发工具包 ... -
puppet详细安装
2012-05-25 15:34 1878puppet详细安装 首先要确 ...
相关推荐
linuxrsync安装配置及命令详解.pdf
rsync配置
此文档本人总结了linux下如何配置两台linux系统之间快速传递庞大数据的方法,总结其他很简单,一个看做服务端,一个看做客户端。通过配置rsync即可。前提是要安装rsync的rpm包,运维的小伙伴很实用!
3.2 rsync服务器的配置文件 4 架设rsync服务器的示例说明 4.1 全局定义 4.2 模块定义 5 启动rsync 服务器及防火墙的设置; 5.1 启动rsync服务器; 5.2 rsync服务器和防火墙; 6 通过rsync客户端来同步数据; 6.1 列...
rsync配置参考,了解linux如何实现目录同步,共同学习
rsync 配置与使用实现 rsync 配置与使用实现 rsync 配置与使用实现
执行rsync同步时出现以下报错 [root@client abc]# rsync -azH --delete --password-file=/etc/server.pass /opt/abc/ backuper@192.168.5.129::wwwroot rsync: failed to set times on /. (in wwwroot): Operation ...
rsync配置与使用(v2.0),大家分享吧
rsync配置windows,linux同步及rsync常用命令,服务端与客户端数据同步
错误描述 [root@localhost ~]# rsync -avz --delete backuper@192.168.20.115::www /www Password: ...rsync服务器配置如下 [root@localhost ~]# cat /etc/rsyncd.conf # /etc/rsyncd: configuration
rsync 配置文件,欢迎下载,评价的顶顶顶顶顶顶顶顶顶
Rsync详解及liunx和windows下的配置
inotity+rsync配置参考。网上收集的rsync --daemon,inotifywait配置文件简单整理
主要用于描述Linux rsync配置、启动等
rhel5之rsync服务配置 rhel5之rsync服务配置
linux 下rsync文件夹同步配置,可以定时。
rsync配置[借鉴].pdf
Rsync的配置与使用重点详解,比较全面的介绍了rsync同步备份的方法及配置重点。
Linux下rsync安装配置使用教程
Linuxrsync配置具体实现说明.pdf