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 同步一下,以免系统非正常关机造成时间不同步

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

猜你喜欢

转载自www.cnblogs.com/smileblogs/p/10789377.html