Linux System Time Synchronization

Source: Internet
Author: User
Tags nameserver
View hardware time # hwclock -- show
Set hardware time # hwclok -- set -- date = "month/day/year hour: minute: second"
Based on the hardware time, modify the system time # hwclock -- hctosys # hwclock-S

Automatic server synchronization time: # Yum install NTP # chkconfig ntpd on # ntpdate pool.ntp.org #/etc/init. d/ntpd start

1. Error:

Etc] # ntpdate us.pool.ntp.org
Error: temporary failure in name resolution
3 Jun 02:39:35 ntpdate [27430]: Can't find host us.pool.ntp.org

3 Jun 02:39:35 ntpdate [1, 27430]: No servers can be used, exiting

2. Solution: Set the DNS server

VI/etc/resolv. conf

Add: nameserver 8.8.8.8 nameserver 8.8.4.4 or nameserver 202.106.196.115

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.