Linux系统下如何使用NTP服务器?(2) - 万象系统之家

万象系统之家 - 系统光盘下载网站!

当前位置:万象系统之家 > 系统教程 > Linux使用NTP服务器

Linux系统下如何使用NTP服务器?(2)

时间:2015-11-23 16:08:54 作者:zhijie 来源:万象系统之家 1. 扫描二维码随时看资讯 2. 请使用手机浏览器访问: https://m.xitongzhijia.net/xtjc/20151123/62163.html 手机查看 评论

  参数:

  ignore :关闭所有的 NTP 联机服务

  nomodify:客户端不能更改服务端的时间参数,但是客户端可以通过服务端进行网络校时。

  notrust :客户端除非通过认证,否则该客户端来源将被视为不信任子网

  noquery :不提供客户端的时间查询

  二、具体配置

  [root@linuxidc1 ~]# vim /etc/ntp.conf

  3 restrict default kod nomodify notrap nopeer noquery

  4 #restrict -6 default kod nomodify notrap nopeer noquery

  5 restrict default nomodify

  6 restrict 192.168.8.0 mask 255.255.255.0 nomodify

  11 restrict 127.0.0.1

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

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

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

  21 server 192.168.8.70

  31 server 127.127.1.0 # local clock

  32 fudge 127.127.1.0 stratum 10

  [root@linuxidc1 ~]# /etc/init.d/ntpd restart

  Shutting down ntpd: [ OK ]

  Starting ntpd: [ OK ]

发表评论

0

没有更多评论了

评论就这些咯,让大家也知道你的独特见解

立即评论

以上留言仅代表用户个人观点,不代表万象系统之家立场

Linux系统推荐

本站发布的系统仅为个人学习测试使用,请在下载后24小时内删除,不得用于任何商业用途,否则后果自负,请支持购买微软正版系统!

如侵犯到您的权益,请及时通知我们,我们会及时处理,对系统之家有任何投诉或建议,请与管理员联系. QQ:346231061

Copyright2024 万象系统之家(www.maxdo.tech) 版权所有 沪ICP备2021023961号-5 粤公网安备 13010202004188