本文共 466 字,大约阅读时间需要 1 分钟。
搜了30min解决的,记录一下。
# check now timezone$ date -RSun, 21 Oct 2018 23:35:04 +0800# change timezone to Shanghai if it is wrongapt-get updateapt-get install tzdataecho "Asia/Shanghai" > /etc/timezonerm -f /etc/localtime# maybe you need to rm -rf /usr/share/zoneinfo/UTCdpkg-reconfigure -f noninteractive tzdata# outputCurrent default time zone: 'Asia/Shanghai'Local time is now: Sun Oct 21 22:33:36 CST 2018.Universal Time is now: Sun Oct 21 14:33:36 UTC 2018.
参考:
转载地址:http://frmli.baihongyu.com/