在centos 7中大家可能会应用ntp做工夫同步,然而在centos8中,大家举荐另外一种工具-chrony
办法一:具体操作请查看下文:
**
yum install -y chronysystemctl start chronyd
(注册成开机启动)systemctl enable chronyd
(查看)
timedatectlrm /etc/localtime
从/usr/share/zoneinfo/中创立软连贯以替换以后的时区信息
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
(再次查看)
timedatectl
**
办法二:ntpdate
如果还是心愿应用 ntpdate,请参考这篇文章装置:
https://blog.whsir.com/post-4...