Linux system time synchronization, hardware clock and system time synchronization, time zone settings

Source: Internet
Author: User

1. Time Synchronization (manual):date-s "2015-07-15 22:13:30" Hwclock--SYSTOHC (indicates system time synchronized to hardware clock)Hwclock--hctosys (indicates hardware clock synchronization to system time)

2, according to the Internet time synchronization:First check to see if Linux has the NTP software:Rpm-qa | grep NTP
If you do not install continue to find:Yum Search NTP
Then install this NTP using the information you found above:Yum Install ntp.i386
after the installation: Enter NTP, press TAB to enter the prompt, there will be ntpdate, we need it
To start syncing:Ntpdate time.windows.comThat's it, it's simple, time.windows.com is Windows Time server
Finally, the system time is synchronized to the hardware clock:Hwclock--SYSTOHC
The Internet synchronization is complete!

3, the above two kinds of too much trouble, because NTP has a daemon can be started to synchronize the Service NTPD StartThen enter after the check: Ps-ef | grep NEPD



following the sync or not, keep looking down:1. Input Date-rSee if it's Plus 8 (+0800)2, how no +8To set the Linux time zone:Input: TzselectSelect sequence Number: 5 for AsiaThen choose the Country: 9 on behalf of ChinaThen choose 1We're going to adjust the time zone.



The above is the method of synchronization time

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Linux system time synchronization, hardware clock and system time synchronization, time zone settings

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.