systemd-timesyncd.service

  

 

man 5 timesyncd.conf

man 8 systemd-timesyncd.service

 

# /etc/systemd/timesyncd.conf
[Time]
NTP=time.windows.com ntp.ubuntu.com
FallbackNTP=ntp1.aliyun.com ntp2.aliyun.com 
RootDistanceMaxSec=5
PollIntervalMinSec=32
PollIntervalMaxSec=2048
ConnectionRetrySec=1

 

timedatectl set-ntp true  # 会启用 systemd-timesyncd.service

timedatectl set-ntp false  # 会禁用 systemd-timesyncd.service

 

timedatectl show

timedatectl status

 

timedatectl timesync-status -a

timedatectl show-timesync -a

systemd-timesyncd - ArchWiki (archlinux.org)

 

posted @ 2021-11-04 14:57  ascertain  阅读(414)  评论(1编辑  收藏  举报