arch linux 时钟同步服务
timedatectl set-ntp true
查询状态
timedatectl status
Configuration
When starting, systemd-timesyncd will read the configuration file from
/etc/systemd/timesyncd.conf/etc/systemd/timesyncd.conf[Time] #NTP= #FallbackNTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.orgTo add time servers or change the provided ones, uncomment the relevant line and list their host name or IP separated by a space. For example, you can use any servers provided by the NTP pool project or use the default Arch ones (also provided by the NTP pool project):
/etc/systemd/timesyncd.conf[Time] NTP=0.arch.pool.ntp.org 1.arch.pool.ntp.org 2.arch.pool.ntp.org 3.arch.pool.ntp.org FallbackNTP=0.pool.ntp.org 1.pool.ntp.org 0.fr.pool.ntp.org
本文介绍如何在ArchLinux中配置并使用systemd-timesyncd服务进行时钟同步。通过设置timedatectl来启用NTP同步,并展示了如何修改配置文件/etc/systemd/timesyncd.conf来指定NTP服务器。
6196

被折叠的 条评论
为什么被折叠?



