zoukankan      html  css  js  c++  java
  • ntp

    更改时间,然后update更新
    windows:
    "cmd /c w32tm /config /update /manualpeerlist:time-a.nist.gov"
    "cmd /c w32tm /resync"   
     
     linux:
     "ntpdate time-a.nist.gov"
         
     "ntpdate -u time.nist.gov"
     注意:若不加上-u参数, 会出现以下提示:no server suitable for synchronization found
    -u:指定使用无特权的端口发送数据包,可以越过防火墙与主机同步;
     
     
     几个公用服务器:
     http://time1.aliyun.com
    http://time2.aliyun.com
    http://time3.aliyun.com
    http://time4.aliyun.com
    http://time5.aliyun.com
    http://time6.aliyun.com
    http://time7.aliyun.com
    time.pool.aliyun.com
    windows失败:
    原因是windows time服务失效。
    修复:
    1.运行 cmd 进入命令行,然后键入
    w32tm /register
    正确的响应为:W32Time 成功注册。
    2.如果上一步正确,用 net start "windows time" 或 net start w32time 启动服务。
    
    linux失败:
    服务器地址有可能未有效,或者可以试一下关闭防火墙,再或者开放防火墙的123端口
  • 相关阅读:
    《Spring_Four》第二次作业 基于Jsoup的大学生考试信息展示系统开题报告
    《Spring_Four》第一次作业:团队亮相
    4.11jsp
    4.7jsp
    3.17jsp
    3.24jsp
    3.10jsp
    3.4软件测试
    回文串
    博客园第二次作业
  • 原文地址:https://www.cnblogs.com/notchangeworld/p/12187423.html
Copyright © 2011-2022 走看看