linux,window服务器时间同步

一般情况下我们经常会要求每台服务器的服务器时间保持同步,针对无服务器时间同步做如下说明:

1)window    w32tm是用来同步本地计算机与远程计算机或域时间.  

  1、启动window  time服务器   

  2、新建脚本:   

  net time /setsntp:192.168.1.10   

  net stop w32time

  net start w32time   

  w32tm -s

2)linux   

  1)nepdate 10.10.50.200   (后面的ip是时间同步的源服务器)

猜你喜欢

转载自www.cnblogs.com/zhanhj/p/9392143.html