zoukankan      html  css  js  c++  java
  • ubuntu下配置NTP Server注意地方

    1./etc/ntp.conf 文件是Linux NTP的主要配置文件,你可以设置NTP服务器的ip地址。
    2.有些时候除非取消notrust、nomodify、notrap配置,client段的ntp服务才能有效工作。

    我的ntp.conf内容:

         driftfile /var/lib/ntp/ntp.drift

         statistics loopstats peerstats clockstats

         filegen loopstats file loopstats type day enable

         filegen peerstats file peerstats type day enable

         filegen clockstats file clockstats type day enable

         server ntp.ubuntu.com

         restrict -4 default kod notrap nomodify nopeer noquery

         restrict -6 default kod notrap nomodify nopeer noquery

         restrict 127.0.0.1

         restrict ::1

         restrict 192.168.0.1 mask 255.255.255.0 nomodify notrap nopeer


    参考网站:
    http://www.eecis.udel.edu/~mills/ntp/html/accopt.html
    http://support.ntp.org/bin/view/Support/AccessRestrictions
    http://wiki.ubuntu.org.cn/Quick_HOWTO_:_Ch24_:_The_NTP_Server/zh

  • 相关阅读:
    python基础之元组,集合
    python列表补充、循环
    python基础之字典、赋值补充
    python基础2
    基本数据类型
    计算机基础与计算机硬件总结
    python基础
    操作系统
    Django APP打包重用
    PyCharm 使用Github托管Django项目
  • 原文地址:https://www.cnblogs.com/chinalantian/p/2128136.html
Copyright © 2011-2022 走看看