Centos uses ntpdate to change time to GMT

Source: Internet
Author: User
Tags centos server



Update time from a time server with Ntpdate


 
 
1 [[email protected] ~]# ntpdate time.nist.gov 
2  7 Nov 13:49:41 ntpdate[3032]: no servers can be used, exiting
3 [[email protected] ~]# ntpdate time.nist.gov
4  7 Nov 14:16:45 ntpdate[3033]: step time server 24.56.178.140 offset 1596.032452 sec


If you don't update it, run it again, hehe.



If your Linux system doesn't ntpdate this command at all,


Yum Install NTP





Reference address: 2 Methods of time synchronization for CentOS server



Centos uses ntpdate to change time to GMT


Related Article

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.