Home  >  Article  >  Operation and Maintenance  >  How to modify the time zone in centos

How to modify the time zone in centos

WJ
WJOriginal
2020-06-02 16:16:353463browse

How to modify the time zone in centos

#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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn