Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- If our server was running in China, then we would use the "Asia/Shanghai" time zone:
- rm -rf /etc/localtime
- ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- You can navigate to the directory /usr/share/zoneinfo to find the appropriate time zone. There is an excellent resource on Wikipedia for timezone listings.
- Input date again, you will find that the local system time has changed to CST (China Standard Time) GMT+0800.
- Next, we will write the system time info into the hardware clock.
- vi /etc/sysconfig/clock
- Modify the content of this file as below.
- ZONE="Asia/Shanghai"
- UTC=false
- ARC=false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement