关于centos8:centos-8-时间同步chrony

在centos 7中大家可能会应用ntp做工夫同步,然而在centos8中,大家举荐另外一种工具-chrony

办法一:具体操作请查看下文:

**

yum install -y chrony
systemctl start chronyd

(注册成开机启动)
systemctl enable chronyd

(查看)

timedatectl
rm /etc/localtime

从/usr/share/zoneinfo/中创立软连贯以替换以后的时区信息

ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

(再次查看)

timedatectl

**

办法二:ntpdate

如果还是心愿应用 ntpdate,请参考这篇文章装置:
https://blog.whsir.com/post-4…

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理