同步CentOS时间

1. 安装ntpdate工具

# yum -y install ntp ntpdate

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

# ntpdate cn.pool.ntp.org

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

# hwclock --systohc

posted @ 2018-04-18 09:46  gao88  阅读(103)  评论(0编辑  收藏  举报