How to modify the time zone of CentOS6 system?

  
                

Under the CentOS6 system, I don't know why the time zone date is wrong, and some programs need accurate time to run. If the problem should be fixed in the time zone, how do I fix the CentOS6 system time zone? After

tzselect by setting stale regions, it is not found GMT time, when viewing zone:

liang @ liang: ~ $ date +% z

+0000

Obviously, the time zone is wrong. Check /etc/localtime, the last content is UTC

Solution:

liang@liang:~$ sudo cp /usr/Share/zoneinfo/Asia/Shanghai /etc/localtime

liang@liang:~$ date +%z

+0800

liang@liang:~$ date

Friday, May 11, 2015 18:56:39 CST

Implementing Internet Time Synchronization (here can ignore the above two steps)

Method 1. Automatic Networking at Boot Time Time:

vi /etc/rc.d/rc.local

/usr/sbin/ntpdate -u 192.168.0.2 192.168.0.3 192.168.0.4; /sbin/hwclock -w< Br> Previous12Next Total 2 Pages

Copyright © Windows knowledge All Rights Reserved