Linux time-lapse calibration

Source: Internet
Author: User

System: Contos 5.5

Function: Timed from the network to a more accurate time

Usage: There are several ways to update the time, here is a simple introduction to the Rdate command


The system usually comes with the rdate command at the time of installation, we have to do it very simply, as follows:

1, the trial command for the first time update:

#/usr/bin/rdate-s time.nist.gov

Explanation: a./usr/bin/is the directory where the command is default;

B.-s indicates that the acquired time is saved locally;

C.time.nist.gov is the time server that is being looked up from the network. (You can also create your own time server, do not introduce)


2. Use timed tasks to execute the rdate command

#crontab-E

Add the following line (12 points per day, 20 point execution)

0 12,20 * * */usr/bin/rdate-s time.nist.gov >/dev/null 2>&1


Timing Task Time Rule introduction: http://ycgit.blog.51cto.com/8590215/1382821

Linux time-lapse calibration

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.