搭建配置NTP服务器
服务器香港
香港CN2服务器、企业级CN2 GIA双程专线高速回国T3机房香港、美国、韩国、海外物理服务器热销中!
1、yuminstall-yntp
2、关闭防火墙
serviceiptablesstop
serviceip6tablesstop
chkconfigiptablesoff
chkconfigip6tablesoff
vim/etc/selinux/config
修改SELINUX=disabled
3、备份ntp.conf配置文件
cp/etc/ntp.conf/etc/ntp.conf.bak
vim/etc/ntp.conf
restrictdefaultkodnomodifynotrapnopeernoquery#拒绝ipv4用户
restrict-6defaultkodnomodifynotrapnopeernoquery#拒绝ipv6用户
restricttime.nist.govprefer
restrict210.72.145.44#授权国家授时中心服务器访问本地NTP
restrict133.100.11.8#授权133.100.11.8访问本地NTP
restrict127.0.0.1
restrict-6::1
restrict10.0.0.0mASk255.255.0.0nomodify#本地网段授权访问
servertime.nist.govprefer#指定上级更新时间服务器,优先使用这个地址
server210.72.145.44
server133.100.11.8
server127.127.1.0
fudge127.127.1.0stratum8
driftfile/var/lib/ntp/drift
keys/etc/ntp/keys
Tags:服务器香港,搭建配置NTP服务器
版权声明:本站文章来源标注为YINGSOO的内容版权均为本站所有,欢迎引用、转载,请保持原文完整并注明来源及原文链接。禁止复制或仿造本网站,禁止在非www.yingsoo.com所属的服务器上建立镜像,否则将依法追究法律责任。本站部分内容来源于网友推荐、互联网收集整理而来,仅供学习参考,不代表本站立场,如有内容涉嫌侵权,请联系alex-e#qq.com处理。