系统相关
首页 > 系统相关> > centos 时间同步

centos 时间同步

作者:互联网

(1)安装ntpdate工具

yum -y install ntp ntpdate

(2)设置系统时间与网络时间同步

ntpdate cn.pool.ntp.org

(3)将系统时间写入硬件时间

hwclock --systohc

(4)强制系统时间写入CMOS中防止重启失效

hwclock -w

或clock -w

标签:同步,centos,ntpdate,写入,hwclock,时间,系统,ntp
来源: https://www.cnblogs.com/sdliangi/p/15775989.html