Linux system time and time zone synchronized with Internet time

Source: Internet
Author: User

The problem so figure red Area

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/9A/B1/wKiom1lZrbfSDXhZAAFXnusKgXY449.png-wh_500x0-wm_ 3-wmp_4-s_3314084951.png "title=" 11111111111111111111.png "alt=" Wkiom1lzrbfsdxhzaafxnuskgxy449.png-wh_50 "/>


#/usr/sbin/ntpdate time.nist.gov//manual sync time, found with network time or not wrong

# Vi/etc/sysconfig/clock//Discovery is new_york,zone= "America/new_york"


# Cp/usr/share/zoneinfo/asia/shanghai/etc/localtime//Modify time zone
# Vi/etc/sysconfig/clock //modified to China's East eight district
zone= "Asia/shanghai"
Utc=false
Arc=false


Reference online

2 "./etc/ LocalTime This file is used to set the time zone of the system, copy the corresponding file from  /usr/share/zoneinfo/  to/etc and rename it to  localtime  to modify the time zone setting. And this modification is effective in time for the  date  order. Both  date  and  hwclock  use this file, which translates between UTC and local based on the time zone setting of the file.  

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M00/9A/B2/wKioL1lZr4Xy3MtwAAALp--2osE475.png-wh_500x0-wm_ 3-wmp_4-s_316273005.png "title=" 2222222.png "alt=" Wkiol1lzr4xy3mtwaaalp--2ose475.png-wh_50 "/>


When you start the computer automatically when the network:
Vi/etc/rc.d/rc.local
/usr/sbin/ntpdate time.nist.gov; /sbin/hwclock-w




This article is from the "Linux" blog, so be sure to keep this source http://xiraowangja.blog.51cto.com/3952075/1943967

Linux system time and time zone synchronized with Internet time

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.