The centos method of correcting the clock is permanently valid

timedatectl set-timezone Asia/Shanghai 

 

hwclock --set --date "2018-12-20 16:37:30"

 

This is the modified hardware clock, restarting will also be effective

Guess you like

Origin blog.csdn.net/qq_32783703/article/details/106663487