Linux system initialization--Configure NTP Automatic update time

Source: Internet
Author: User

Configure NTP Automatic Update time

Installing the Ntpdate Program

shell># yum–y Install Ntpdate

Use Crontab to set the system to synchronize time with the NTP server 0:00 per day

shell># crontab–e

0 0 * * * ntpdate your_ntp_server_domain_name or YOUR_NTP_SERVER_IP_ADDR

Save Exit,

For our steps to go on, we perform a synchronization

shell># ntpdate NTP.JN.IDC

If successful, you will be prompted with the following

shell># ntpdate NTP.JN.IDC

Jul 15:34:31 ntpdate[8655]: Step time Server NTP.JN.IDC offset-29.884509 sec

Synchronizing system time to hardware

shell># hwclock–w

Verify

shell># Date

Sat Jul 09:00:47 CST 2015

If there is no problem with the output time, it indicates success


This article is from the Blue Wings blog, so be sure to keep this source http://wqlszy2016.blog.51cto.com/2668358/1891347

Linux system initialization--Configure NTP Automatic update time

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.