NTP server and Client synchronization configuration

Source: Internet
Author: User

NTP server-side configuration (CENTOS7)

A Open the UDP123 Port input-m State--state new-m udp-p UDP--dport 123-j ACCEPT. Then restart the firewall Server service FIREWALLD restart

or directly shut down Firewall service firewalld stop, Chkconfig firewalld off

Two Check that there is no NTP service Rpm–qa|grep NTP, if not then install Yum install–y NTP

Three Network address to sync: vi/etc/ntp.conf

Server 0.centos.pool.ntp.org Iburst

Synchronize native server # Local Clock If you cannot connect to the extranet

Four Set Client IP rights vi/etc/ntp.conf

Restrict mask nomodify notrap

NTP Client synchronization Settings

A. Rathat,centos

First method (the frequency of synchronization time can be controlled by crontab)

1. Close Ntpd:service ntpd stop, Chkconfig ntpd off

2. Can be synchronized with/usr/sbin/ntpdate test

(The time test can be synchronized to the back, from the back to the front, sometimes not )

3.crontab–e * */1 * * * */usr/sbin/ntpdate

The second method (can not set the frequency of synchronization time, can be netstat view)

Service ntpd start, Chkconfig ntpd on



two. SuSE

Visual operations: Control Center--system--date and Time

Three Windows

Visual actions (Internet time settings)

Another: Some statements (under the premise of using the NTPD service)

View the relationship with the upper NTP server ntpq–p

Check to see if you have updated your time Ntpstat

NTP server and Client synchronization 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.