我需要做一些测试,包括在将来设置时钟,我不知道如何禁用与timedatectl或其他任何东西的ntp同步,这样我就可以更改时钟,而不是让它与实时同步。
这里是ubuntu 16.04
发布于 2017-01-12 22:42:59
只需停止并禁用systemd-timesyncd (默认安装)和ntp (如果已经安装)。在将系统迁移到未来之前,最好先进行备份,因为当您将系统带回过去时,可能会发生有趣的事情。
sudo systemctl stop systemd-timesyncd && sudo systemctl disable systemd-timesyncd
sudo systemctl stop ntp && sudo systemctl disable ntp如果系统是虚拟机,则还必须确保它没有设置为使其时间与主机同步。
https://askubuntu.com/questions/871246
复制相似问题