1.点击exe 一直下一步,直到弹出一个txt 文本,修改配置如下:
ntp.conf 文件路劲:
C:\Program Files (x86)\NTP\etc\ntp.conf
2.修改所有服务器ip 把 192.168.99.178 替换为真实服务器ip
- ntp服务若是启动失败则按照下图修改服务的配置
- 服务启动成功后点击C:\Program Files (x86)\NTP\bin\ntpstatus.bat 查看ntp状态显示如下则表示配置成功
5.安装盘包地址:http://139.155.80.85/#s/7V3c6tgA
配置文件内容:
NTP Network Time Protocol
# ATTENTION : You have to restart the NTP service when you change this file to activate the changes
# PLEASE CHECK THIS FILE CAREFULLY AND MODIFY IT IF REQUIRED
# Configuration File created by Windows Binary Distribution Installer Rev.: 1.27 mbg
# please check http://www.ntp.org for additional documentation and background information
# restrict access to avoid abuse of NTP for traffic amplification attacks
# see http://news.meinberg.de/244 for details
restrict default noquery nopeer nomodify notrap
restrict -6 default noquery nopeer nomodify notrap
# allow status queries and everything else from localhost
restrict 127.0.0.1
restrict -6 ::1
# if you need to allow access from a remote host, you can add lines like this:
# restrict
restrict 192.168.100.0 mask 255.255.255.0 nomodify notrap
# Use drift file
driftfile “C:\Program Files (x86)\NTP\etc\ntp.drift”
# your local system clock, could be used as a backup
# (this is only useful if you need to distribute time no matter how good or bad it is)
#server 127.127.1.0
# but it should operate at a high stratum level to let the clients know and force them to
# use any other timesource they may have.
#fudge 127.127.1.0 stratum 12
# Use a NTP server from the ntp pool project (see http://www.pool.ntp.org))
# Please note that you need at least four different servers to be at least protected against
# one falseticker. If you only rely on internet time, it is highly recommended to add
# additional servers here.
# The ‘iburst’ keyword speeds up initial synchronization, please check the documentation for more details!
# server 0.pool.ntp.org iburst minpoll 6 maxpoll 7
# server 1.pool.ntp.org iburst minpoll 6 maxpoll 7
# server 2.pool.ntp.org iburst minpoll 6 maxpoll 7
# server 3.pool.ntp.org iburst minpoll 6 maxpoll 7
# server 4.pool.ntp.org iburst minpoll 6 maxpoll 7
server 192.168.99.178 perfer
#添加如下一行。允许上层时间服务器主动修改本机时间
restrict 192.168.99.178 nomodify notrap noquery
#添加如下两行。外部时间服务器不可用时,以本地时间作为时间服务
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
# End of generated ntp.conf —- Please edit this to suite your needs