VPS安装LNMP关于时区的问题
日期差了8个小时。。。date -R 时间差了8个小时
date -u 时间是正确的。
CST显示时间是错误的
UTC时间是正确的。。。
郁闷中。。。:(
我试了好多方法都不行。。
回复 1# 的帖子
UTC + 8 = CSTcp /usr/share/zoneinfo/Asia/Taipei /etc/localtime
ntpdate cn.pool.ntp.org
试试 # cp /usr/share/zoneinfo/Asia/Taipei /etc/localtime
cp: `/usr/share/zoneinfo/Asia/Taipei' and `/etc/localtime' are the same file
# ntpdate cn.pool.ntp.org
17 Nov 04:45:03 ntpdate: step-systime: Operation not permitted
提示是这个。。。
有个疑问,军哥。。。我看到etc目录确实有个localtime的目录,可是却无法打开。
用VI 打开里面是乱码。。。。这是不是正常
回复 3# 的帖子
xen的吗?在/etc/sysctl.conf 里
加上xen.independent_wallclock=1 ,再试试。 不是。。。是OpenVZ的。。。 母机有问题,联系客服给修正了。。。谢谢军哥。
页:
[1]