在 GNU/Linux/Debian 中遇到系统日期/时间问题:日期、时间、cron 的时间过快。sleep 命令工作正常,文件修改时间正确。通过命令解释的问题:
$ date
Mon Sep 12 05:27:46 CEST 2011
$ time sleep 1
real 71m13.403s
user 0m0.008s
sys 0m0.012s
$ date
Fri Sep 16 22:00:02 CEST 2011
Run Code Online (Sandbox Code Playgroud)
看起来,当命令“sleep 1”运行并且输入命令“date”时,4 天过去了。嗯,实际上没有。欢迎提出有关正在发生的事情的想法。
$ uname -a
Linux the_hostname 2.6.18-238.19.1.el5xen #1 SMP Fri Jul 15 08:16:59 EDT 2011 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
是的,它在虚拟机中。
$ hwclock --debug
hwclock from util-linux-ng 2.13.1.1
hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
No usable clock interface found.
Cannot access the Hardware Clock via …Run Code Online (Sandbox Code Playgroud)