CentOS 7.0 NTP Service Setup

Source: Internet
Author: User

NTP Service time synchronization

Turn off firewalls and SELinux or turn on all firewall services

[Email protected] ~]# firewall-cmd --set-default-zone=trusted

NTP service

[[email protected] ~]# yum–y install NTP

[email protected] ~]# cat /etc/ntp. conf //Modify configuration file //define native sync time with yourself

Restrict 176.20.32.0 mask 255.255.255.0 nomodify //allow which hosts sync time

#server 0.rhel.pool.ntp.org Iburst

#server 1.rhel.pool.ntp.org Iburst

#server 2.rhel.pool.ntp.org Iburst

#server 3.rhel.pool.ntp.org Iburst

Server 127.127.1.0 iburst//define native sync time with yourself

Fudge 127.127.1.0 Stratum 3

Includefile/etc/ntp/crypto/pw

Keys/etc/ntp/keys

Disable Monitor

Client-side Test NTP service

[Email protected] ~]# ntpdate 172.25.0.254

Jul: ntpdate[6052]: Adjust time server 172.25.0.254 offset 0.031270 sec//Table Test success

CentOS 7.0 NTP Service Setup

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.