ovo

Linux 校时

timedatectl set-timezone Asia/Shanghai

apt install ntp -y && ntpdate pool.ntp.org

hwclock -w

Centos8后采用Chrony替代ntp,手动同步命令改用

yum install -y chrony

sudo chronyc -a makestep

如果chronyd未启动可以使用以下命令同步

chronyd -q 'server ntpdate pool.ntp.org iburst'

sakura
我还没有学会写个人说明!
查看“sakura”的所有文章 →

Leave a Reply

Your email address will not be published. Required fields are marked *

相关推荐