Ubuntu Server Editon time zone settings

Source: Internet
Author: User

Ubuntu Server Editon time zone settings
Posted on th, 2009 by zxing
By default, Linux uses the UTC format as the standard time format. If you run a program in Linux and specify a different time zone in the program, a time error may occur.
The tzconfig and tzselect tools are provided in ubuntu to set the time zone. In Server Edition, we can use tzselect to set the time zone. Run:
 
Sudo tzselect
Select the time zone as prompted, and then:
Note that the following is the synchronization time with the ntp server. cn.pool.ntp.org is a public NTP server located in China.
 
 
Sudo cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
Sudo ntpdate cn.pool.ntp.org
PS: if multiple operating systems are installed on your machine, Ububtu considers the time in BIOS as UTC by default, therefore, two systems may write different time points into the BIOS, resulting in time confusion.
Modify the/etc/default/rcS file in Ubuntu and change UTC = yes to UTC = no.

 

This article is from "My work records"
 

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.