如何同步两台Linux机器的时间?

除了用NTP服务器之外,下面的命令可以做到让几台机器的时间都跟一台机器同步。

date --set="$(ssh root@10.245.110.101 date)"


参考资料

===========

how to sync time between two linux servers

http://blogs.perl.org/users/michael_li/2014/07/how-to-sync-time-between-two-linux-servers.html

posted on 2018-04-02 14:27  中道学友  阅读(612)  评论(0编辑  收藏  举报

导航

技术追求准确,态度积极向上