zoukankan      html  css  js  c++  java
  • Linux NTP

    1.Server  2.QuickStart          last


    1.Server

    0.cn.pool.ntp.org
    1.cn.pool.ntp.org
    2.cn.pool.ntp.org
    3.cn.pool.ntp.org
    View Code

    2.QuickStart

    • 简单配置
      # Permit time synchronization with our time source, but do not
      # permit the source to query or modify the service on this system.
      restrict default nomodify notrap nopeer noquery
      
      # Permit all access over the loopback interface.  This could
      # be tightened as well, but to do so would effect some of
      # the administrative functions.
      #restrict ::1
      
      # Hosts on local network are less restricted.
      #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap
      
      restrict 172.16.36.0 mask 255.255.255.0 nomodify notrap
      restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap
      
      # Use public servers from the pool.ntp.org project.
      # Please consider joining the pool (http://www.pool.ntp.org/join.html).
      server 0.cn.pool.ntp.org iburst
      server 1.cn.pool.ntp.org iburst
      server 2.cn.pool.ntp.org iburst
      server 3.cn.pool.ntp.org iburst
      View Code

    Demo
    •  

    • vmware 学习用虚拟机
      #虚拟机经常时间不准确
      #用户登录就自动调整时间
      vi .bashrc
      ntpdate 0.cn.pool.ntp.org > /dev/null &
      View Code

    NTP .

    一切代码都是为了生活,一切生活都是调剂
  • 相关阅读:
    Java中的Date类型无法赋值给数据库的datetime类型
    在HTML中改变input标签中的内容
    sizeof计算类的大小
    UML类图,转载
    大端小段详解—转载
    leetcode练习
    linux基础
    排序算法和查找算法

    链表
  • 原文地址:https://www.cnblogs.com/argor/p/7905304.html
Copyright © 2011-2022 走看看