服务器显示错误的UTC时间

我正在运行一个CentOS服务器,似乎无法正确设置时间。 我的问题是,我已经把时区设置为UTC,而服务器似乎承认这一点,但它仍然表示错误的时间!

真正的UTC时间= 16:56(我的当地时区是GMT)

# hwclock –show wed 09 Mar 10:56:48 AM UTC -0.502715 seconds # date Wed Mar 9 10:56:51 UTC 2011 

也就是说,服务器似乎在说,它是在UTC时间…但6个小时后!

我已经采取了几个步骤来尝试纠正这一点,包括:

 1. Use setup to manually pick the timezone # system-config-date (Set to Etc/UTC) 2. Set the timezone in the localtime file # ln -sf /usr/share/zoneinfo/UTC /etc/localtime 3. Change the UTC value in the /etc/sysconfig/clock file I have tried both UTC=true and UTC=false 

这些解决scheme都没有工作

请帮忙,

大卫

大卫,

你已经设置了时区,现在你只需要设置时间。 有很多方法可以做到这一点。 我通常做:

 ntpdate ntp.uiuc.edu 

或者快速谷歌search在CentOS上设置时间的任何其他方法。

干杯,丹尼

我讨厌问,但是..你有没有做任何事来纠正时间本身? 看起来像时区是好的,但时间是closures的。

您是使用date命令手动设置时间还是同步到NTP服务器?