在Windows XP/2003下建立NTP服务:
1. 工作之前请先备份注册表文件。
2. 修改以下选项的键值HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer内的「Enabled」设定为1,打开NTP服务器功能(默认是不开启NTP Server服务,除非服务器升级成为域控制器)
3.重启Win32Time服务: net stop w32Time && net start W32Time
详见:
http://stan0206.hes78.com/2009/02/established-under-the-ntp-in-windows-2003-service/
linux下
详见《Linux架设ntp时间服务器并且进行同步》http://www.wh010.com/post/79.html
service ntp stop
service ntp start
NTP client命令:
ntpdate ntpserver's IP
如:ntpdate 192.168.10.254