📜  ntp 服务保持失败,结果为“退出代码” - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:08.652000             🧑  作者: Mango

代码示例1
# chmod 700 /var/lib/private
    # rm -r /var/lib/private/systemd
    # systemctl start systemd-timesyncd
    # timedatectl status
                      Local time: Wed 2019-08-28 17:55:15 PDT
                  Universal time: Thu 2019-08-29 00:55:15 UTC
                        RTC time: Thu 2019-08-29 00:55:15
                       Time zone: America/Los_Angeles (PDT, -0700)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no
    # ls -ld /var/lib/private/systemd/timesync
    drwxr-xr-x 2 systemd-timesync systemd-timesync 4096 Aug 28 17:51 timesync/