centos8 设置时间同步

在CentOS8.0中默认不再支持ntp软件包,时间同步将由chrony来实现
vim /etc/chrony.conf

注释掉
pool 2.centos.pool.ntp.org iburst
加入新的的时间服务器
server 210.72.145.44 iburst
server ntp.aliyun.com iburst

在这里插入图片描述
重启服务
systemctl restart chronyd.service
此时时间已经与网络时间同步
设置开机自启
systemctl enable chronyd.service

猜你喜欢

转载自blog.csdn.net/yj2434/article/details/108047787