Centos8 配置时间同步
  RdEelXhuDp09 2023年12月07日 19 0


Centos8已经不支持NTP服务改用chrony服务

1.配置时间同步服务器地址

vim /etc/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.centos.pool.ntp.org iburst
server ntp.api.bz iburst
server ntp.aliyun.com iburst

# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift

#注释默认的时间同步服务器pool 2.centos.pool.ntp.org iburst,
#添加新的时间同步服务器server ntp.api.bz iburst server ntp.aliyun.com iburst

2.重启chrony服务,查看状态

systemctl restart chronyd
chronyc sources -v

Centos8 配置时间同步_服务器

timedatectl status

Centos8 配置时间同步_时间同步_02

3.设置chrony开机自启

systemctl enable chronyd

Centos8 配置时间同步_时间同步_03


【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年12月07日 0

暂无评论

推荐阅读
  xaeiTka4h8LY   2024年04月26日   43   0   0 centoslinuxredis
RdEelXhuDp09