Centos5.6 install the NTP server

Source: Internet
Author: User
Centos5.6 installing the NTP server requires time synchronization between several servers for some services and experiments. Therefore, you have the prerequisites for building NTP. the specific steps are as follows: 1. install the ntp service yuminstallntp. I *-y2, modify/etc/ntp. confrestrictdefaultkodnomodi...
The installation of the NTP server on centos 5.6 requires time synchronization between some services and multiple machines in the experiment. Therefore, the prerequisites for building NTP are as follows: 1. install the ntp service yum install ntp. I *-y2, modify/etc/ntp. confrestrict default kod nomodify notrap nopeer noquery # restrict-6 default kod nomodify notrap nopeer noquery # for ipv6 # This is the default ntp setting www.2cto.com # Allow all local operations restrict 127.0.0.1 restrict-6 :: 1 # allowed local network segments restrict 10.0.0.0 mask 255.0.0.0 nomodify motraprestrict 192.168.0.0 mask 255.255.0.0 nomodify motrap # use the upper-layer internet ntp server restrict mask 255.255.255.255 nomodify notrap noqueryserver Protocol # communication takes the local time as the standard time server 127.127.1.0 # local clockfudge 127.127.1.0 stratum 10 # calculate the frequency error between the ntp server and the upper ntpserver driftfile/var/lib/ntp/drift # Key file containing keys and key identifiers used when operating # with your Ric key cryptography. keys/etc/ntp/keys # log file logfile/var/log/ntp. log # Description: restrict <子网掩码> | <网段> <子网掩码> [Ignore | noquery | notrap | nomodiy | notrust | nokod] ignore: disables all ntp services www.2cto.com noquery: does not provide ntp service notrap: does not provide trap remote event login function nomodiy: it indicates that the client cannot change the time parameter of the ntp server, but can use the ntp server for time correction notrust: refuse the client nokod: kod that has not passed the authentication can organize a dos attack 2, modify the/etc/ntp/step-tickers file 207.46.232.182127.127.1.0 # When the ntp server is started, it automatically verifies the time with the recorded ip address in this file. 3, modify/etc/sysconfig/ntpdSYNC_HWCLOCK = YES # Allow the BIOS to synchronize time with the system. 4. set the client slightly.
Related Article

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.