Linux clock synchronization

Source: Internet
Author: User

1, Environment Introduction:

Set the time synchronization under root user rights

Standard clock synchronization

3 Sets of equipment

Ip Node Role

192.168.128

Master Node

NTPD server for synchronizing standard time with external public ntpd

192.168.129

Alternate Master Node

NTPD client, for synchronizing time with NTPD

192.168.130

Child nodes

NTPD client, for synchronizing time with NTPD

2.NTP clock synchronization setup Step

Check that the NTP service is installed.

The following appears to indicate that the installation was successful.

If it is not installed: Yum-y install NTP.

Then: Service ntpd restart

3, configure the NTPD server, is the network synchronization time of the machine: 192.168.9.128; Synchronize the external network time to the server machine before configuration: Ntpdate-u cn.pool.ntp.org;

Modifying a server configuration file

Vim/etc/ntp.conf

Add the following two items: This set to its own IP last one to write 0;

This also needs to be configured in the back, which is fixed:

The NTP server modification ends here.

Restart Services: Service ntpd restart.

Ntpstat indicates that the server time has been synchronized with the external network.

Configures the client's time synchronization (192.168.9.129/130). The same is to modify the vim/etc/ntp.conf, only to modify these lines. Save exit. Then, Ntpstat.

5, the last reboot server. Time synchronization OK.

Linux clock synchronization

Related Article

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.