我已经在 ubuntu 16.04 上安装了 ntp,但是当我运行时timedatectl它不显示 NTP。它显示systemd-timesyncd在输出中。
我运行了命令sudo systemctl disable systemd-timesyncd; sudo systemctl stop systemd-timesyncd; sudo systemctl enable ntp;
如何为 timedatectl 设置 ntp?
我什至尝试过,timedatectl set-ntp true但它仍然没有显示在timedatectl输出下。
root@host001:~# timedatectl
Local time: Fri 2020-05-08 16:00:59 UTC
Universal time: Fri 2020-05-08 16:00:59 UTC
RTC time: Fri 2020-05-08 16:00:59
Time zone: UTC (UTC, +0000)
System clock synchronized: no
systemd-timesyncd.service active: no
RTC in local TZ: no
Run Code Online (Sandbox Code Playgroud)
我期待如下输出(如其他帖子中所示),其中显示 NTP 而不是systemd-timesyncd
Local time: Fri 2020-05-08 16:00:59 UTC …Run Code Online (Sandbox Code Playgroud)