Linux Centos 8.x系统更新修改系统日期时间
常见问题
Linux Centos 8.x系统更新修改系统日期时间
2024-06-20 12:46
1、设置时间:
date -s 'yyyy-MM-dd HH:mm:ss'
2、只更改年月日,默认时间是00:00:00
date -s 2022-11-15
3、只更新时分秒
date -s 10:13:30
4、将系统时间写入硬件:
hwclock --systohc
5、将硬件时间和系统同步
hwclock --hctosys