Created
August 19, 2018 07:52
-
-
Save willwhui/637eb05b1663816ad9ee41124ce8c6b5 to your computer and use it in GitHub Desktop.
和互联网时间同步
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
和互联网时间同步 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
不能正常访问linux安装源的话(被墙了)
假设需要进行同步的计算机是A
1、找到一台时间正常的机器B,并且可以通过ssh访问它
2、通过配置,可以让A通过证书(免密码)ssh到B
3、编辑A的/etc/rc.local
在其文件末尾增加命令
意思是从B远程执行一个date -u命令,并将其结果作为A的date