Linux system time synchronization, hardware and system time synchronization, Time Zone settings, linux time zone

Source: Internet
Author: User

Linux system time synchronization, hardware and system time synchronization, Time Zone settings, linux time zone
1. Time Synchronization (manual): date-s "22:13:30" hwclock -- systohc (indicating that the system Synchronizes time to the hardware clock) hwclock -- hctosys (indicating that the hardware clock is synchronized to the system time)

2. synchronize data over the Internet: Check whether ntp is available in linux: rpm-qa | grep ntp.
If not installed, continue searching: yum search ntp
Then install the ntp: yum install ntp. i386 with the Information prompt shown above.
After installation: Enter ntp and press the tab key to enter the prompt. ntpdate will be available and we need it.
Start synchronization: ntpdate time.windows.com. That's all. It's easy. It means that time.windows.com is a windows Time Server.
Finally, synchronize the system time to the hardware clock: hwclock -- systohc
Internet synchronization is complete!

3. The above two methods are too troublesome, because ntp can synchronize service ntpd start after a daemon is started, and then press enter to view them: ps-ef | grep nepd



The following are still incorrect after synchronization: 1. Enter date-R to see if 8 (+ 0800) is added. 2. How can I set the linux time zone without + 8? input: tzselect select serial number: 5 indicates Asia, then select country: 9 indicates China, and then select 1 to adjust the time zone.



The above is the synchronization time method.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.