timedatectl 中文手册

570 2025-11-24 20:43:12

例子¶显示当前的时间设置

$ timedatectl

Local time: Thu 2017-09-21 16:08:56 CEST

Universal time: Thu 2017-09-21 14:08:56 UTC

RTC time: Thu 2017-09-21 14:08:56

Time zone: Europe/Warsaw (CEST, +0200)

System clock synchronized: yes

NTP service: active

RTC in local TZ: no

开启网络时间同步服务

$ timedatectl set-ntp true

==== AUTHENTICATING FOR org.freedesktop.timedate1.set-ntp ===

Authentication is required to control whether network time synchronization shall be enabled.

Authenticating as: user

Password: ********

==== AUTHENTICATION COMPLETE ===

$ systemctl status systemd-timesyncd.service

● systemd-timesyncd.service - Network Time Synchronization

Loaded: loaded (/usr/lib/systemd/system/systemd-timesyncd.service; enabled)

Active: active (running) since Mo 2015-03-30 14:20:38 CEST; 5s ago

Docs: man:systemd-timesyncd.service(8)

Main PID: 595 (systemd-timesyn)

Status: "Using Time Server 216.239.38.15:123 (time4.google.com)."

CGroup: /system.slice/systemd-timesyncd.service

└─595 /usr/lib/systemd/systemd-timesyncd

显示

systemd-timesyncd.service(8) 的当前状态

$ timedatectl timesync-status

Server: 216.239.38.15 (time4.google.com)

Poll interval: 1min 4s (min: 32s; max 34min 8s)

Leap: normal

Version: 4

Stratum: 1

Reference: GPS

Precision: 1us (-20)

Root distance: 335us (max: 5s)

Offset: +316us

Delay: 349us

Jitter: 0

Packet count: 1

Frequency: -8.802ppm

重启 Apple Watch
问道手游都有什么端口