目标:我们要把192.168.1.202这台主机的时间设置成本机的时间。
方法:
1、通过date 命令校正:ssh 192.168.1.202 "date -s"$(date '+%F %H:%M:%S')""
2、通过ntp来校正:在需要校正的机器上运行ntpdate server_ip。