#How to change the time zone in centos?
For Chinese users, if centos uses UTC time zone by default, the time difference is eight hours. In fact, it can be changed to the Chinese time zone through simple settings. At this time, the time on the machine and the time on the local watch Time is consistent. Execute the following command:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
. If you do not see the /Asia/Shanghai file, manually execute the following tzselect and select according to the prompts.
Related references: centOS tutorial
The above is the detailed content of How to modify the time zone in centos. For more information, please follow other related articles on the PHP Chinese website!