今天我测试网页的发邮件功能,RHEL6.1系统已经安装的Postfix,而且也随系统启动了,但就是发不出来邮件,于是就开始查找原因,虽然目前还没有找到邮件不能发送的原因。(现在已经写出POSTFIX的问题解决方法了关于postfix发邮件No route to host和Connection refused错误的解决方法)但却发现了系统的时间不正确。按网上的资料也没有解决我的问题,不知道大家是如何解决的,那今天就把我解决的方法给大家共享出来,供大家参考学习。
先来看看问题是什么样的:
1、系统的BISO时间是完全正确的
2、用hwclock -r查看的系统时间
[root@yufei ~]# hwclock -r
Wed 13 Jul 2011 05:50:55 AM CST -0.868339 seconds
而现在的北京时间是7月12号21:50。正好相差8小时。
3、用hwclock -D来调试的结果是
[root@yufei ~]# hwclock -D
hwclock from util-linux-ng 2.17.2
Using /dev interface to clock.
Last drift adjustment done at 1310506688 seconds after 1969
Last calibration done at 1310506688 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
...got clock tick