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

How to modify the time zone in centos

WJ
Release: 2020-06-02 16:16:35
Original
3556 people have browsed it

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
Copy after login

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template