Synchronize your Linux system time and clock speed

Source: Internet
Author: User
Tags current time linux

The clock speed not only can update the system clock from the NTP server, but it can also calculate the clock frequency and manage the system time accordingly.

Many people who want to keep an accurate computer clock use network time Protocol (NTP) to set their clocks at the same times as the atomic clocks. NTP is a way to ensure that all computers in a network operation have exactly the same time, so that they can help oversee the recording of files and routine automated maintenance work, and so on.

However, if you have a fairly large network, NTP can provide a considerable amount of traffic to keep the clock updated. In a way, it needs to operate regularly to adjust the individual clock frequencies on different computers. So unless you've set up your NTP server for your network, it won't be able to generate more traffic than you expect.

The other option is D. J. Bernstein clock Speed program. It can not only update the system clock from the NTP server, but it can also calculate the clock frequency and manage the system time accordingly.

With the clock speed, you only need to sync the NTP server once in a while, and this occasional time can even be once a year.

First, download the clock speed from the network, compile and install. Then, use the Sntpclock tool to see the difference between the remote clock and the local clock, as shown below. (Use the IP address of the remote NTP server instead of 1.2.3.4).

# Sntpclock 1.2.3.4 | Clockview

This shows that the current time is the time displayed with the NTP server. Perform an operation to update the local clock to the same time as the NTP server:

# Sntpclock 1.2.3.4 | Clockadd

Next, run the clock speed by adding the following to the/etc/rc.d/rc.local, just as daemon this daemon.

Clockspeed &

The installation file for the clock speed further provides information for viewing and adjusting the system clock after a number of days or weeks. It will sync your local and remote clocks in a few minutes every other century. At this point, a yearly check time is very reasonable.

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.