arch linux 时钟同步服务

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.org

To 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

猜你喜欢

转载自blog.csdn.net/linuxchen/article/details/50905807