我正在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
免责声明:我不太擅长Linux,我主要是一个Windows管理员。
所以我在我的网络上部署了一堆Raspberry,而我面临的问题之一是它们无法保持正确的时间和日期。因此,我想我只需要安装NTP服务,并将它们指向我的Windows域控制器,它也可以作为NTP服务器工作。但似乎不起作用。这是我的ntp.conf文件:
# /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help
driftfile /var/lib/ntp/ntp.drift
# Enable this if you want statistics to
我在Windows7上工作。我可以手动从ntp linux服务器同步win7的时间。如何在命令提示符中执行此操作。这样我就可以在windows启动时运行它了。windows任务计划对我不起作用。时间应该是这样的:
Linux server --> windows 7.
有人知道吗?谢谢。我能读msdn。
根据Ubuntu下的Linux手册页
CLOCK_MONOTONIC
Clock that cannot be set and represents monotonic time since
some unspecified starting point.
CLOCK_MONOTONIC_RAW (since Linux 2.6.28; Linux-specific)
Similar to CLOCK_MONOTONIC, but provides access to a raw hard‐
ware-based time that
我想像往常一样在CentOS8上安装ntpdate。但是,没有这样的资料:
# cat /proc/version
Linux version 4.18.0-240.1.1.el8_3.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 8.3.1 20191121 (Red Hat 8.3.1-5) (GCC)) #1 SMP Thu Nov 19 17:20:08 UTC 2020
# yum install -y ntpdate
Last metadata expiration check: 2:21:14 ago on M