centos时间不同步的解决方法(centos时间同步)

来源:互联网 发布:mysql事务是什么 编辑:程序博客网 时间:2024/05/20 08:26

1.  安装ntpdate工具

# yum -y install ntp ntpdate

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

# ntpdate cn.pool.ntp.org

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

# hwclock --systohc

1 0