首页 > 系统相关 >配置windows ntp time

配置windows ntp time

时间:2023-11-19 10:44:06浏览次数:37  
标签:windows ntp server iburst time org pool

1、HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\, 将“Enabled”数值数修改为 1,保存。

然后services.msc重启ntp time服务。

配置enable后,客户端执行ntpdate -d -u ip 返回too high

 

 2、HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\,在右窗格中,单击“AnnounceFlags”,然后单击“修改”,在“编辑 DWORD 值”对话框中的“数值数据”下,键入 5,保存。重启ntp time服务。客户端ntpdate可以有回包

 

(2)但是chronyc sources发现不同步

 

windows看配置,没有问题

 

 

 /etc/chrony.conf的配置正常

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 192.168.1.3 iburst
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst

# Record the rate at which the system clock gains/losses time.
driftfile /var/lib/chrony/drift

# Allow the system clock to be stepped in the first three updates
# if its offset is larger than 1 second.
#makestep 1.0 3

# Enable kernel synchronization of the real-time clock (RTC).
rtcsync

# Enable hardware timestamping on all interfaces that support it.
#hwtimestamp *

# Increase the minimum number of selectable sources required to adjust
# the system clock.
#minsources 2

# Allow NTP client access from local network.
allow 0.0.0.0/0

# Serve time even if not synchronized to a time source.
local stratum 10

# Specify file containing keys for NTP authentication.
#keyfile /etc/chrony.keys

# Specify directory for log files.
logdir /var/log/chrony

# Select which information is logged.
log measurements statistics tracking

  

标签:windows,ntp,server,iburst,time,org,pool
From: https://www.cnblogs.com/yue-hong/p/17841667.html

相关文章

  • solidity--time
    1//SPDX-License-Identifier:GPL-3.0-or-later23pragmasolidity>=0.8.0;45contractdatetime{67constructor(){89}101112functiongetBlockTime()publicviewreturns(uint256){1314returnbl......
  • Microservice- Resiliency patterns: Timeout Pattern
    TimeoutPatternWhatiscontext.Context?The contextinGoenablesyoutospecifydeadlines,cancellationsignals,orkey-valuepairs availablebetweenprocesses. context.WithDeadlinerequiresatargetdateasaparameter,butthereisaneasierstep: c......
  • 一款.NET开源的小巧、智能、免费的Windows内存清理工具 - WinMemoryCleaner
    前言我们在使用Windows系统的时候经常会遇到一些程序不会释放已分配的内存,从而导致电脑变得缓慢。今天给大家推荐一款.NET开源的小巧、智能、免费的Windows内存清理工具:WinMemoryCleaner。使用Windows内存清理工具来优化内存,这样不必浪费时间去重新启动电脑。工具主要特点......
  • json LocalDateTime转对象
    jsonLocalDateTime转对象feign.codec.DecodeException:JSONparseerror:Cannotdeserializeinstanceofjava.time.LocalDateTimeoutofSTART_ARRAYtoken;nestedexceptioniscom.fasterxml.jackson.databind.JsonMappingException:Cannotdeserializeinstanceof......
  • windows 微信小游戏
    有好几年没怎么使用Windows系统了,Windows版本微信居然小程序和小游戏了,这个确实会方便很多用户。总体来说是不错的。对我来说,这个非常不安全,非常容易制作辅助和外挂,感觉现在小程序Windows版本的辅助应该满天飞了吧 我现在简单记录一下小游戏存储路径,搞一些小动作需要知道的......
  • Windows7使用docker
    Windows7使用docker注:win10可以下载桌面版,详情看官网1、安装win7需要dockertoolbox进行安装,但官网以前有,现在没了,所以要去菜鸟教程给的地址下载:[阿里镜像](Indexof/docker-toolbox/windows/docker-toolbox/(aliyun.com))下载后直接安装,selectcomponents最好勾上没有的安......
  • Windows系统 nacos 部署
     转载:https://www.cnblogs.com/simon-xie/p/15730368.html  Windows系统 Nacos安装及部署 一、下载地址https://github.com/alibaba/nacos二、新建数据库新建一个实例名为nacos的数据库,并执行nacos/conf下的nacos-mysql.sql文件创建表三、修改配置打开conf下的ap......
  • Windows环境安装PostgreSQL
    Windows环境安装PostgreSQL安装步骤要在DockerDesktop上安装PostgreSQL数据库,请按照以下步骤进行操作:首先,确保您已经安装了DockerDesktop,并且它正在运行。打开终端或命令提示符,并输入以下命令来从DockerHub下载并运行PostgreSQL镜像:dockerrun--namemy-postgres-e......
  • 4.6 Windows驱动开发:内核遍历进程VAD结构体
    在上一篇文章《内核中实现Dump进程转储》中我们实现了ARK工具的转存功能,本篇文章继续以内存为出发点介绍VAD结构,该结构的全程是VirtualAddressDescriptor即虚拟地址描述符,VAD是一个AVL自平衡二叉树,树的每一个节点代表一段虚拟地址空间。程序中的代码段,数据段,堆段都会各种占用一......
  • 使用 ABAP + OLE 消费 Windows DLL 文件里的代码和服务
    在SAPABAP中,我们可以使用OLE(ObjectLinkingandEmbedding)技术来实现对WindowsDLL文件的代码和服务的消费。以下是一个详细的解决方案:首先,我们需要明确OLE技术在ABAP中的应用。OLE是由微软开发的一种技术,它允许对象(即应用程序功能)被嵌入到其他应用程序中。在ABA......