内容简介:Deploy Local Ntp Server on Centos7
有时候需要内网环境搭建一个ntp服务器同步内网的几台机器。
四步走:
安装ntpd
yum -y install ntp ntpdate
修改/etc/ntpd.conf
# line 18: add the network range you allow to receive requests restrict 10.0.0.0 mask 255.255.255.0 nomodify notrap # local clock server 127.127.1.0 fudge 127.127.1.0 stratum 10
重启
systemctl start ntpd systemctl enable ntpd firewall-cmd --add-service=ntp --permanent firewall-cmd --reload
瞄一眼
watch ntpq -p
注意reach这个值,在启动ntp server服务后,这个值就从0开始不断增加,当增加到17的时候,从0到17是5次的变更,每一次是poll的值的秒数,是64秒*5=320秒的时间。
如果之后从ntp客户端同步ntp server还失败的话,用ntpdate –d来查询详细错误信息,再做判断。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Cracking the Coding Interview
Gayle Laakmann McDowell / CareerCup / 2015-7-1 / USD 39.95
Cracking the Coding Interview, 6th Edition is here to help you through this process, teaching you what you need to know and enabling you to perform at your very best. I've coached and interviewed hund......一起来看看 《Cracking the Coding Interview》 这本书的介绍吧!