Linux系统时间, 硬件BIOS时间的校准与同步

#宿主机系统时间:
    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 同步一下,以免系统非正常关机造成时间不同步
posted @ 2020-10-24 19:44  王维鹏qaq  阅读(369)  评论(0)    收藏  举报