1. Synchronize network time to System time ntpdate command
[[Email protected] test1]# Date
Tue SEP 6 07:12:03 CST 2016
[Email protected] test1]# ntpdate cn.pool.ntp.org
6 Sep 09:18:23 ntpdate[13047]: Step time server 120.25.108.11 offset 7566.199829 sec
[[Email protected] test1]# Date
Tue SEP 6 09:18:25 CST 2016
Cn.pool.ntp.org (The official Time synchronization server IP domain name of China National Timing Center)
After synchronizing the network time to the system time, you can use HWCLOCK-W to synchronize the system time to hardware time.
2. Build your own Time synchronization server
Time Synchronization server settings:
Systemctl Stop Firewalld
Vim/etc/chrony.conf
Allow 172.25.254.0/24
Local stratum 10
Systemctl Restart Chrony
3. How to synchronize the system time automatically (synchronize server time)
Chronyc Sources-v See who is syncing with.
1. Determine the time source address (which time to synchronize)
172.25.254.254
2. Determine the time synchronization service used by the customer's host
Chronyd.service
3. Load the time source address in the Chronyd.service service
Vim/etc/chrony.conf
Server172.25.254.254 iburst
#systemctl Restart Chronyd.service
This article from the "Technology life, Simple not simple" blog, please be sure to keep this source http://willis.blog.51cto.com/11907152/1846771
Linux Time Synchronization Service