Linux Learning Log day2 part0--building NTP service for time management

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.