0

Local time zone must be set--see zic manual page

jenny created at6 years ago view count: 2451

执行date命令后面会跟上一串 Local time zone must be set--see zic manual page 。 而且服务器时间也不对,怎样解决?

report
回复
0

执行

ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

在.bashrc里面添加

export TZ='Asia/Shanghai'

然后再执行 date 看下时间对不,如果不对执行下面的语句修正时间

date -s "2017-07-10 17:13:00"
6 years ago 回复

Recommend

Recent search keywords