VPS侦探论坛

 找回密码
 注册
查看: 8963|回复: 5

VPS安装LNMP关于时区的问题

[复制链接]
发表于 2010-11-16 15:16:36 | 显示全部楼层 |阅读模式

日期差了8个小时。。。
date -R 时间差了8个小时
date -u 时间是正确的。

CST显示时间是错误的
UTC时间是正确的。。。

郁闷中。。。

我试了好多方法都不行。。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-11-16 19:50:32 | 显示全部楼层

回复 1# 的帖子



UTC + 8 = CST

cp /usr/share/zoneinfo/Asia/Taipei /etc/localtime
ntpdate cn.pool.ntp.org
试试
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-11-16 20:48:14 | 显示全部楼层

[root@10xxx /]# cp /usr/share/zoneinfo/Asia/Taipei /etc/localtime
cp: `/usr/share/zoneinfo/Asia/Taipei' and `/etc/localtime' are the same file
[root@10xxx /]# ntpdate cn.pool.ntp.org
17 Nov 04:45:03 ntpdate[32574]: step-systime: Operation not permitted

提示是这个。。。

有个疑问,军哥。。。我看到etc目录确实有个localtime的目录,可是却无法打开。
用VI 打开里面是乱码。。。。这是不是正常
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2010-11-16 21:48:00 | 显示全部楼层

回复 3# 的帖子




xen的吗?
在/etc/sysctl.conf 里
加上xen.independent_wallclock=1 ,再试试。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2010-11-16 22:58:51 | 显示全部楼层

不是。。。是OpenVZ的。。。

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2010-11-17 09:52:38 | 显示全部楼层

母机有问题,联系客服给修正了。。。谢谢军哥。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-8 08:54 , Processed in 0.026402 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表