royzs 发表于 2013-08-26 10:49

高人勿喷,为什么rsync同步不需要开启873端口

如题











royzs 发表于 2013-08-26 11:01

why







ding_cw 发表于 2013-08-26 11:31

端口可以自己定义

royzs 发表于 2013-08-26 11:34

回复 3# ding_cw


    我是说为什么我不开rsync进程,873端口没启动就能直接用rsync命令同步文件

ding_cw 发表于 2013-08-26 11:36

那是在本机吗不同主机通讯应该是要开端口的啊

royzs 发表于 2013-08-26 11:49

本帖最后由 royzs 于 2013-08-26 11:50 编辑

回复 5# ding_cw


不是本机,就是不同服务器之间同步,确实没有开防火墙,而且本机都没有rsync进程
看来还是我对这个命令本身不太了解,难道没人知道??

ding_cw 发表于 2013-08-26 11:53

请贴配置/etc/rsyncd.conf
查看端口 netstat -an

royzs 发表于 2013-08-26 13:11

回复 7# ding_cw


    rpm包装的,主配置文件不是/etc/rsyncd.conf

ding_cw 发表于 2013-08-26 13:40

你装的应该是xinetd   这个是把rsync包装成服务开机以服务启动

实际还是rsyncd,这个不能改变默认端口873

netstat -an | grep 873可以查看端口是否已经开启

royzs 发表于 2013-08-26 13:41

royzs 发表于 2013-08-26 13:11 static/image/common/back.gif
回复 7# ding_cw




只有一个/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 = yes
      socket_type   = stream
      wait            = no
      user            = root
      server          = /usr/bin/rsync
      server_args   = --daemon
      log_on_failure+= USERID
}
页: [1] 2 3
查看完整版本: 高人勿喷,为什么rsync同步不需要开启873端口