1.运行regedit
把HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer中的Enabled值改为1
把HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config中的AnnounceFlags修改为5
2.运行 services.msc
将Windows Time服务设置成自动(延迟启动)
3.启动Windows Time服务
4.在linux虚拟机中
用root用户登陆
crontab -e加入:
*/5 * * * * /usr/sbin/ntpdate 192.168.x.1 > /home/oracle/ntp.log 2>&1 ##192.168.x.1(根据win7在虚拟网络下的IP具体情况)
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28539951/viewspace-1685868/
,如需转载,请注明出处,否则将追究法律责任。