我可以在系统日志中看到以下内容(在 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]: 时间已更改”消息