@ERROR: Unknown module ‘common’

@ERROR: Unknown module ‘common’ rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.6]
原因:
服务器不存在指定模块。
解决方法:
提供正确的模块名或在服务器端修改成你要的模块以解决问题。

我不太理解正确的模块名是什么意思。
本人新手 用rsync试着跑一遍
我根据linux运维之道书 上教程

# yum -y install rsync
# mkdir /common; cp /etc/init.d/* /common/
# vim /etc/rsync.conf
motd file=/etc/rsyncd.motd
transfer logging = yes
log file = /var/log/rsyncd.log
pid file=/var/run/rsyncd.pid
lock file=rsync.lock
port = 873
address=192.168.188.80
uid=nobody
gid=nobody
use chroot = no
read only = yes
max connections=10
[common]
comment=Web content
path=/common
ignore errors
auth users=tom,jerry
secrets file= /etc/rsyncd.secrets
hosts allow=192.168.0.0/255.255.255.0
hosts deny=*
list=false
echo "tcom:pass" > /etc/rsyncd.secrets
chmod 600 /etc/rsyncd.secrets
echo "welcome to access" >/etc/rsyncd.motd
rsync --daemon
echo "/usr/bin/rsync --daemon" >> /etc/rc.local
iptables -I INPUT -p tcp --dports 873 -j ACCEPT
service iptables save

客户端同步数据

yum -y install rsync 
rsync -vzrtopg --progress tom@192.168.0.0.254::common /test
@ERROR: Unknown module ‘common ’ rsync error: error starting client-server protocol (code 5) at main.c(1522) [receiver=3.0.6]

原因:
服务器不存在指定模块。
解决方法:
提供正确的模块名或在服务器端修改成你要的模块以解决问题。

卡到这一关,不知道怎么做啊

阅读 7.7k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进