博客已迁移,请看签名

新博客:http://www.51it.wang

Centos同步网络时间

yum -y install ntp ntpdate

#安装ntpdate工具


ntpdate cn.pool.ntp.org

#设置系统时间与网络时间同步


hwclock --systohc

#将系统时间写入硬件时间


date

#查看系统时间


只需4步即可同步网络时间,以免时差。

上一篇 下一篇
评论
©博客已迁移,请看签名 | Powered by LOFTER