文档首页> 常见问题> Linux Centos 8.x系统更新修改系统日期时间

Linux Centos 8.x系统更新修改系统日期时间

发布时间:2024-06-20 12:44       

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

扫一扫访问手机版
30+ 高防云产品
1000+企业的共同选择