一个月后,我的 VPS 上的大量服务停止工作。折腾了一个小时左右后,我发现时间已经冻结了。我认为这是某种虚拟化错误,重启很快修复了它。
但是,今天我试图运行我的 S3 备份,但由于时间错误,SSL 失败了。在检查我得到的时间时:
Current default timezone: 'Europe/London'
Local time is now: Sat Jul 11 22:03:02 BST 2009.
Universal Time is now: Sat Jul 11 21:03:02 UTC 2009.
tim@vps:~$ sudo ntpdate ntp.ubuntu.com
11 Jul 22:03:30 ntpdate[3901]: step time server 91.189.94.4 offset -14404.833448 sec
Run Code Online (Sandbox Code Playgroud)
现在我现在在英国,很明显它只是在 18:03 才离开。
我试过手动设置日期:
sudo date +%T -s "18:03:30"
Run Code Online (Sandbox Code Playgroud)
当我读回来时,它并没有改变
我搞砸了什么?
编辑:
我跑了:
tim@vps:/var/log$ sudo hwclock --utc
Cannot access the Hardware Clock via any known method.
Use the --debug option to see the details …Run Code Online (Sandbox Code Playgroud)