CentOS6.5的时间同步

1. 先安装ntpdate工具

# yum -y install ntp ntpdate

在这里插入图片描述
2. 设置系统时间与网络时间同步

# ntpdate cn.pool.ntp.org

在这里插入图片描述

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

# hwclock --systohc

在这里插入图片描述
4. 最后查查时间是否正确
在这里插入图片描述

————————————————
版权声明:本文为CSDN博主「奔走觅衣粮」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:链接: https://blog.csdn.net/qq_35826412/article/details/86680494.

发布了15 篇原创文章 · 获赞 0 · 访问量 501

猜你喜欢

转载自blog.csdn.net/qq_36335126/article/details/103895614
今日推荐