我正在尝试重新启动OpenStack服务,并在我的/etc/systemd/system/multi-user.target.wants/我运行一个systemctl start ntpdate.service并得到以下错误:
5月31日12时05分39秒localhost.localdomain systemd [1]:开始设置时间通过NTP ...
5月31日12时06分09秒localhost.localdomain systemd [1]:ntpdate.service:主进程退出,代码=退出,状态= 1 /失败
5月31日12:06:09 localhost.localdomain systemd [1]:无法启动通过NTP设置时间。
5月31日12:06:09 localhost.localdomain systemd [1]:单元ntpdate.service进入失败状态。
5月31日12:06:09 localhost.localdomain systemd [1]:ntpdate.service失败。
我也似乎无法find/var/log/目录中的ntp.log 。 我相信这也是rabbitmq-server.service了我的rabbitmq-server.service ,但当时是一个问题。
有什么build议么?
我意识到已经安装了ntpd和ntpdate.service ,所以它们与它们使用的端口冲突。 我需要使用ntpdate.service ,所以我只是命令systemctl stop ntpd ,然后用systemctl start ntpd重新启动ntpdate 。 然后我检查了systemctl status ntpdate.service ,它是active 。