centos时间网络同步

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/heroguo007/article/details/78288303

最近部署集群,发现时间不一致,整理下修改方案

1.  安装ntpdate工具

# yum -y install ntp ntpdate

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

# ntpdate cn.pool.ntp.org

3.  将系统时间写入硬件时间

# hwclock --systohc

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

hwclock -w  或 clock -w

猜你喜欢

转载自blog.csdn.net/heroguo007/article/details/78288303