内容简介: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来查询详细错误信息,再做判断。
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Types and Programming Languages
Benjamin C. Pierce / The MIT Press / 2002-2-1 / USD 95.00
A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. The study of typ......一起来看看 《Types and Programming Languages》 这本书的介绍吧!