修改centos 7 系统时间

查看当前系统时间 date

修改当前系统时间 date -s "2018-2-22 19:10:30

查看硬件时间 hwclock --show

修改硬件时间 hwclock --set --date "2018-2-22 19:10:30"

同步系统时间和硬件时间 hwclock --hctosys

保存时钟 clock -w

重启系统检查

猜你喜欢

转载自www.cnblogs.com/polly-ling/p/9724410.html