1. 修改 /etc/timezone的時鍾為UTC時鍾.
echo "Asia/Shanghai" > /etc/timezone
2.修改時區
$sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
3.同步時鍾服務器
$sudo ntpdate cn.pool.ntp.org
報錯 21 Feb 03:04:30 ntpdate[19759]: the NTP socket is in use, exiting 解決方法,停止npdd服務
/etc/init.d/ntpd stop
4.寫入BIOS
$sudo hwclock --systohc
https://blog.csdn.net/wfing/article/details/9213181
https://blog.51cto.com/upgirl/1136844?_t=t