Linux clock synchronization and linux clock

Source: Internet
Author: User

Linux clock synchronization and linux clock

1. Environment Introduction:

Set Time Synchronization under root User Permissions

Standard Clock Synchronization

3 devices

IP Node Function

192.168.128

Master Node

Ntpd server, used to synchronize Standard Time with external public ntpd

192.168.129

Backup master node

Ntpd client, used to synchronize time with ntpd

192.168.130

Subnode

Ntpd client, used to synchronize time with ntpd

 

 

 

 

 

 

2,Ntp clock synchronization settings

Check whether the ntp service is installed.

If the following message is displayed, the installation is successful.

If not, run yum-y install ntp.

Then: service ntpd restart

3. Configure the ntpd server, that is, the machine with the synchronization time through the internet: 192.168.9.128; synchronize the Internet time to the server machine before the configuration: ntpdate-u cn.pool.ntp.org;

Modify the server configuration file

Vim/etc/ntp. conf

Add the following two items: Set it to the last bit of your IP address and write it to 0;

The configuration is also required later, which is fixed:

The ntp server has been modified so far.

Restart service: service ntpd restart.

Ntpstat indicates that the server time has been synchronized with the Internet.

Configure the Time Synchronization for the client (192.168.9.129/130 ). Modify vim/etc/ntp. conf. You only need to modify these lines. Save and exit. Then, ntpstat.

5. reboot server. Time Synchronization OK.

 

 

 

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.