在配置其中一个时OpenStack的成分我必须使用命令重新启动 rsync sudo service rsync restart
。这样做,我收到以下错误消息:
* Restarting rsync daemon rsync
* rsync daemon not running, attempting to start.
* rsync daemon failed to start
感谢任何与此相关的帮助。
编辑:/etc/rsyncd.conf内容如下:
uid = swift
gid = swift
log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
address = 127.0.0.1
#address = <STORAGE_LOCAL_NET_IP>
[account]
max connections = 2
path = /srv/node/
read only = false
lock file = /var/lock/account.lock
[container]
max connections = 2
path = /srv/node/
read only = false
lock file = /var/lock/container.lock
[object]
max connections = 2
path = /srv/node/
read only = false
lock file = /var/lock/object.lock
答案1
重启机器确实帮了我大忙。不幸的是,我搞不清楚到底出了什么问题。不过,在你沮丧地撞破头之前,先看看下面的内容:
检查位于的配置文件,
/etc/rsyncd.conf
查找细微的拼写错误。日志文件可以为您提供有关 rsync 无法启动的原因的详细信息,请检查日志。它们位于您在配置文件中配置它们的位置
/etc/rsyncd.conf
。我的位于/var/log/rsyncd.log
。