天天看点

在win7主机上为你的linux虚拟机配置ntp服务

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具体情况)

继续阅读