Multiple Linux Server time synchronization

Source: Internet
Author: User

1, set the A-machine time server:

A, modify the/etc/ntp.conf as follows:

  

# undisciplined Local Clock. This was a fake driver intended for backup
# and when no outside source of synchronized time is available.
Server 127.127.1.0 # Local clock
#fudge 127.127.1.0 Stratum 10

B

/ETC/INIT.D/NTPD Start #启动时间服务器

Service NTPD Status

Service NTPD Start

C

  

[Email protected] etc]# ntpq-p
Remote refID St T when poll reach delay offset jitter
==============================================================================
*local (0). Locl. 5 L 59 64 377 0.000 0.000 0.000

D,chkconfig ntpd on #设置自启动

2. Set up client machines that need to be synchronized:

A

Modify the/etc/ntp.conf as follows:

  

# undisciplined Local Clock. This was a fake driver intended for backup
# and when no outside source of synchronized time is available.
server 200.4.0.40 # Local clock time synchronization Server a machine
Fudge 200.4.0.40 Stratum 10

B

Service NTPD Status

Service NTPD Start

C, (only open/etc/init.d/ntpd start to see the following information)

[Email protected] etc]# ntpq-p
Remote refID St T when poll reach delay offset jitter
==============================================================================
200.4.0.40 LOCAL (0) 6 u 5 64 1 1.377-7077.8 0.000

D,chkconfig ntpd on #设置自启动

E, ntpdate-d 200.4.0.40

  

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.