![在 syslog 上重复 **systemd[1]: 时间已更改**](https://linux22.com/image/891846/%E5%9C%A8%20syslog%20%E4%B8%8A%E9%87%8D%E5%A4%8D%20**systemd%5B1%5D%3A%20%E6%97%B6%E9%97%B4%E5%B7%B2%E6%9B%B4%E6%94%B9**.png)
我可以在系统日志中看到以下内容(在 ubuntu 16.04 上)
Mar 28 22:51:36 gitserv systemd[1]: apt-daily.timer: Adding 5h 9min 12.773843s random time.
Mar 28 22:51:36 gitserv systemd[1]: snapd.refresh.timer: Adding 3h 24min 34.415866s random time.
Mar 28 22:51:41 gitserv systemd[1]: Time has been changed
Mar 28 22:51:41 gitserv systemd[1304]: Time has been changed
我已禁用 snapd.refresher.service 和 apt-daily.service
● apt-daily.service - Daily apt activities
Loaded: loaded (/lib/systemd/system/apt-daily.service; static; vendor preset: enabled)
Active: inactive (dead)
Docs: man:apt(8)
● snapd.refresh.service - Automatically refresh installed snaps
Loaded: loaded (/lib/systemd/system/snapd.refresh.service; static; vendor preset: enabled)
Active: inactive (dead)
Docs: man:snap(1)
我也禁用了 NTP 同步,但是该问题仍然以 2-3 秒的间隔出现。
非常感谢您的帮助,提前谢谢。
答案1
这对我有用。不过不确定您是否在 Hyper-V VM 上运行服务器。 /var/log/syslog 每 5 秒显示一次“systemd[1]: 时间已更改”消息