更新服务器时间到服务器:
ntpdate time.windows.com
BISO时间同步:
#宿主机系统时间: date
#宿主机时间校准方法:
yum install -y ntpdate
ntpdate -u ntp.api.bz
#centos查看设置系统时区:(可能没有)
cat /etc/sysconfig/clock
#hwclock 查看系统bios时间, 查看硬件时钟用命令:
hwclock --show
hwclock -w //将系统时钟写入硬件时钟
hwclock --hctosys //硬件时钟与系统时钟同步
# 提醒: date命令只操作系统时间,hwcloc