Centos time synchronization problems

Source: Internet
Author: User
Tags time zones

In general, the synchronization time is required for enterprises. For windows domains, You can automatically synchronize the domain controller time. For CentOS system time synchronization, follow these steps: the newly installed CentOS system server may be set incorrectly, you need to adjust the time zone and time. Cp/usr/share/zoneinfo/Asia/Shanghai/etc/localtime
The first sentence of ntpdate 210.72.145.44 is to change the current time zone to Shanghai + 8. If you want to change the other time zones, you can check the/usr/share/zoneinfo directory; then the second sentence uses ntpdate to synchronize the standard time. 210.72.145.44 is the IP address of the National Time Service Center, or you can use your own NTP server IP address. If the second error is reported, ntpdateyum install-y ntpdate is not installed to join the scheduled task, synchronize clock crontab-e0-59/10 ***/usr/sbin/ntpdate 210.72.145.44 every 10 minutes | logger-t NTP like this, we can solve the problem of time inaccuracy in the CentOS system.

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.