Configure NTP Service time synchronization (SUSE)

Source: Internet
Author: User

To ensure consistency within the cluster, the NTP time synchronization server needs to be configured, using the China National Time Service Center clock synchronization server, p address 210.72.145.44. So each machine in the cluster is synchronized with the 210.72.145.44 clock server. The configuration steps are as follows:
1) Edit/etc/sysconfig/ntp, add "-X" to Ntpd_options, and the results are as follows:
ntpd_options= "-x-g-u ntp:ntp"
2) Modify/etc/n tp.conf configuration file, modify server content to time server ip  address 210.72.145.44
3) Start NTP service
      rcntp  start
      chkconfig NTP on

NTP service time sync  
1. First stop NTP service: Service ntpd stop; 
2. With NTP The server does the actual synchronization operation:ntpdate  210.72.145.44; 
3. Start NTP service: Service ntpd start
4 view sync: ntpq-p
     remote           refid      St T when poll reach   delay  ;  offset  jitter
==============================================================================
*10.182.10.17    10.254.112.10    4 u  1024  377    0.627    0.411&N Bsp  1.039


Look at the various types of services to the accuracy of time requirements, you can perform several ntpdate 210.72.145.44 command, so that the time of the machine will be more and more close to the time of the server.


Description: This article is using the Suse12 operating system, want to Redhat6,centos,ubuntu ... Roughly the same, but REDHAT7 uses chronyd as a clock-sync software, and REDHAT7, of course, supports NTP.

Detailed See follow-up "Redhat 7 use chronyd do clock sync Configuration"

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.