#宿主机系统时间:
    date     
#宿主机时间校准方法: yum install
-y ntpdate ntpdate -u ntp.api.bz
#centos查看设置系统时区:(可能没有) cat
/etc/sysconfig/clock
#hwclock 查看系统bios时间, 查看硬件时钟用命令: hwclock
--show hwclock -w //将系统时钟写入硬件时钟 hwclock --hctosys //硬件时钟与系统时钟同步

# 提醒: date命令只操作系统时间,hwclock操作硬件时钟,因此在date 修改时间后 最好用hwclock 同步一下,以免系统非正常关机造成时间不同步

摘自 https://blog.csdn.net/qq_23587541/article/details/82381406

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-07-20
  • 2021-12-05
  • 2021-11-17
  • 2021-11-19
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2021-11-24
相关资源
相似解决方案