CentOS6.5 time synchronization

1. Install ntpdate tool

# yum -y install ntp ntpdate

Here Insert Picture Description
2. Set the system time synchronized with the network time

# ntpdate cn.pool.ntp.org

Here Insert Picture Description

3. The system time to write hardware time

# hwclock --systohc

Here Insert Picture Description
4. Finally, look up the correct time
Here Insert Picture Description

----------------
Disclaimer: This article is CSDN bloggers' run to find clothing grain "of the original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: link: https://blog.csdn.net/qq_35826412/article/details/86680494 .

Published 15 original articles · won praise 0 · Views 501

Guess you like

Origin blog.csdn.net/qq_36335126/article/details/103895614