将chrony.conf文件设置为“服务器”而不是“池”

问题描述 投票:0回答:1

我正在使用RHEL 8,并且不再支持ntp软件包,它由chrony软件包中提供的chronyd守护程序实现。该文件设置为使用pool.ntp.org项目(池2.rhel.pool.ntp.org iburst)中的公共服务器。有没有办法设置服务器而不是池?

我的chrony.conf文件:

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
pool 2.rhel.pool.ntp.org iburst
rhel rhel7 ntpd
1个回答
0
投票

是。只需注释掉池行,然后添加一个服务器,并添加所需的服务器即可:

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).

# pool 2.rhel.pool.ntp.org iburst
server 0.africa.pool.ntp.org iburst
server 0.us.pool.ntp.org
server 0.south-america.pool.ntp.org
© www.soinside.com 2019 - 2024. All rights reserved.