在我的一些生产环境时间被漂移,我在我的系统上安装了ntp。
当我执行ntpstat命令时,我可以看到下面的输出。
synchronised to NTP server (169.254.169.123) at stratum 4
time correct to within 20 ms
polling server every 512 s
但我无法理解这个输出。
就像我的linux时间是1秒漂移一样,我执行ntpstat命令,命令将做什么。
是命令从ntp服务器同步时间并自动调整本地时间。
如何确保我的linux时间是不正确的和ntp纠正这一点。
我正在Hyper-V集群上安装Debian 11 Linux来宾。主机的实时时钟被设置为本地时间,这是Windows的标准;与类似Unix的OSes不同的是。我是否应该在Linux来宾上执行timedatectl set-local-rtc 1,以与其主机保持一致?
在Linux系统服务器上将实时时钟设置为本地时间报告如下:
Warning: The system is configured to read the RTC time in the local time zone.
This mode can not be fully supported. It will create
我刚刚安装了Ubuntu16.04.1取代Windows8.1。但系统时间比实际时间提前5:30。我来自印度,UTC的偏移量是+5:30。通过运行hwclock,我发现我的系统将硬件时钟解释为UTC,而实际上是本地时间。我试着编辑/etc/default文件(按照硬件时钟正在使用UTC时间.)。但是rcS文件不包含UTC条目。文件内容如下所示。我们能做些什么?
时钟的结果--调试:
hwclock from util-linux 2.27.1
Using the /dev interface to the clock.
Last drift adjustment done at 1474290
我的系统本地时钟显示错误好几天了。当我运行timedatectl status输出时,如下所示:
➜ timedatectl status
Local time: Sat 2021-12-25 19:16:57 +0330
Universal time: Sat 2021-12-25 15:46:57 UTC
RTC time: Sat 2021-12-25 15:46:57
Time zone: Asia/Tehran (+0330, +0330)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
通
我正在运行yocto在docker中构建一个映像,但在所有过程之后,我得到了与automake相关的错误。这是错误:
checking whether build environment is sane...
configure: error: newly created file is older than distributed files!
Check your system clock
日志为:
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_prec
我现在使用docker-machine遇到了问题,它以前工作得很好,因为它在数字海洋中运行docker的机器上的命令超时。
我可以通过SSH连接到机器fine和Docker Swarm,我们的系统似乎在机器上运行正常(docker node命令似乎工作正常,例如docker node ls)。
问题似乎只是与docker机器有关。我在过去有类似的东西,它可以通过增加超时来修复,但现在这没有帮助。
该错误似乎是由net/http HTLS握手超时引起的,因为输出来自:
docker-machine ls --超时30
显示:
NAME ACTIVE DRIVER STATE URL SWARM