您当前的位置: 首页 >  linux

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

发布时间:2015-06-04 17:07:37 ,浏览量:0

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博客 ” ,链接:http://blog.itpub.net/26736162/viewspace-1685899/,如需转载,请注明出处,否则将追究法律责任。

关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    108697博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0484s