我正在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
这是在HypriotOS (Debian /Linux10)上运行在RaPi上的。
$ timedatectl show-timesync
Failed to parse bus message: Connection timed out
然后使用sudo执行此操作:
$ sudo timedatectl timesync-status
Failed to query server: Failed to activate service 'org.freedesktop.timesync1': timed out (service_start_timeout=25000ms)
我在centos服务器上安装了ntp。
我修改了/etc/ntp.conf,将默认服务器条目替换为内部NTP服务器IP的一个条目(1.2.3.4是NTP服务器的IP ):
server 1.2.3.4 iburst
当我重新启动服务器并运行ntpstat时,我会看到以下内容:
unsynchronised
polling server every 64 s
然后运行sudo ntpdate 1.2.3.4并看到以下消息:
1 Dec 19:22:35 ntpdate[2339]: the NTP socket is in use, exiting
然后我停止服务(systemctl st
我无法启动NTP服务,所以机器的时间错了。
Mar 14 11:36:25 ntpd[27956]: receive: Unexpected origin timestamp 0xe2174e4d.523af1e4 does not match aorg 0000000000.00000000 from server@66.228.58.20 xmt 0xe2172
Mar 14 11:36:25 ntpd[27956]: receive: Unexpected origin timestamp 0xe2174e4d.55e58e52 does not match aorg 000000000
我在Windows7上工作。我可以手动从ntp linux服务器同步win7的时间。如何在命令提示符中执行此操作。这样我就可以在windows启动时运行它了。windows任务计划对我不起作用。时间应该是这样的:
Linux server --> windows 7.
有人知道吗?谢谢。我能读msdn。