Setting modify CentOS System time zone command introduction

Source: Internet
Author: User
Tags centos

Modify Settings Time zone

Methods (1)

Tzselect

After you log in to SSH, execute the tzselect command.

We choose Asia 5 here.

Here choose the 9.



Generally selected East eight (Beijing, Guangdong, Shanghai), you can also choose according to their specific circumstances.



Here to determine whether the above information is intended to set the information, choose 1 back to the car can be

Method (2) is limited to Redhat Linux and CentOS Systems

Timeconfig

Method (3) is suitable for Debian

Dpkg-reconfigure Tzdata

3. Copy the appropriate time zone file, replace the CentOS system time zone file, or create a linked file

cp/usr/share/zoneinfo/$ Primary time zone/$ secondary time zone/etc/localtime

In China you can use:

Cp/usr/share/zoneinfo/asia/shanghai/etc/localtime

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.