新装系统时间显示不对,ntpdate更新后还是差着几个小时.查看发现时区不对.
[root@zabbix ~]# ntpdate ntp.org
12 Oct 22:45:07 ntpdate[23467]: step time server 128.4.24.98 offset 5.743623 sec
[root@zabbix ~]# date
Mon Oct 12 22:45:15 EDT 2015
[root@zabbix ~]# ll /etc/localtime
lrwxrwxrwx. 1 root root 38 Aug 30 23:27 /etc/localtime -> ../usr/share/zoneinfo/America/New_York
[root@zabbix ~]# ln -s -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
[root@zabbix ~]# ll /etc/localtime
lrwxrwxrwx. 1 root root 33 Oct 13 10:49 /etc/localtime -> /usr/share/zoneinfo/Asia/Shanghai
[root@zabbix ~]# date
Tue Oct 13 10:50:05 CST 2015
[root@zabbix ~]#
阅读(940) | 评论(0) | 转发(0) |