Setup CENTOS Time Zone

All time zones are stored in:

/usr/share/zoneinfo

Remove locatime file and create symlink to the selected time zone file:

# rm -rf /etc/localtime
# ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

Set timezone for hardware clock

Edit the file /etc/sysconfig/clock:
vi /etc/sysconfig/clock
set:
ZONE="Asia/Shanghai"

Be the first to comment

Leave a Reply

Your email address will not be published.


*