CentOS Study Notes-Time Synchronization

Source: Internet
Author: User

CentOS Study Notes-Time Synchronization
Time

Anyone who has installed a Linux system may have this experience, that is, the time required for installing the windows system on this machine is correct, but after installing the linux system, even though the time zone is correct, the system time is incorrect. This is because the system is installed in UTC, so what is UTC? Simply put, UTC is the time in the 0 time zone, which is an international standard, while China is in the UTC + 8 time zone.

Another time is the local time, while Windows uses the local time. Therefore, do not select UTC for Linux installation.

If we select this option, we will find that:

The time difference between the local time and the CentOS machine is 8 hours. How can this problem be solved?

Install the network time synchronization software
Yum install-y ntp
Network Synchronization time (the following command is still valid when I use it. If it is invalid, Baidu will try it)
Ntpdate 0.rhel.pool.ntp.org
Synchronize to hardware clock
Hwclock-w

This step ensures that there will be no problem after the machine is restarted in the future. It is actually to change the bios time to the local time. Now, the machine displays the local time.

CentOS NTP server installation and configuration

NTP servers in Linux

NTP client configurations for multiple operating systems

Build an enterprise-level NTP Time Server

Set up an ntp time synchronization server in Linux

Enable NTP time server in CentOS 6.3

This article permanently updates the link address:

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.