Simple hands-on operation
The machine's system time synchronization is very important, otherwise it may be a big deal.
Realize:
Yum-y Install NTP
Put NTP services on each machine
Vim/etc/ntp.conf
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/88/A3/wKioL1f9_8vzFY2NAABeojcm_8w465.png "title=" 4.png " alt= "Wkiol1f9_8vzfy2naabeojcm_8w465.png"/>
Use # to comment out the system default server, add a custom server
Server hostname/Domain iburst
Note the iburst at the end
The host synchronizes with the asia.pool.ntp.org, and the other machines synchronize with the host, so that the time of each machine is synchronized.
Systemctl start Ntpdsystemctl Enable NTPD
Done
NOTES: Several commands about the time
Timedatectl
View time Details
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/88/A3/wKioL1f9_i-i6yL0AABzGqDKP9c189.png-wh_500x0-wm_3 -wmp_4-s_2812589400.png "title=" 1.png "width=" "height=" 144 "border=" 0 "hspace=" 0 "vspace=" 0 "style=" width:300px; height:144px; "alt=" Wkiol1f9_i-i6yl0aabzgqdkp9c189.png-wh_50 "/>
Universal Time (UTC): International Unified Clock
RTC Time: Realtime clock. Specifies a hardware clock, typically a special circuit on the motherboard, dedicated for recording time, battery-powered, not affected by the server's turn off, the operating system is turned off
Tzselect
Modify Time zone
Ntpq-p
ntpq-p Querying the NTP server in the network while showing the relationship between the client and each server
This article is from the "Cry" blog, please be sure to keep this source http://antistand.blog.51cto.com/12146661/1861182
Linux Learning Log day2 part0--building NTP service for time management