Linux Server Time synchronization method

Source: Internet
Author: User

Generally a slightly larger project will be deployed to several servers to do the cluster, the same application may be deployed to several servers, while the processing business must keep different servers on the same time, which requires time synchronization between servers. My approach is to:

1, select one of the external network open server, with the root user set crontab scheduled tasks, daily 23:30 automatically synchronize online time, which ntp.api.bz for the NTP server (Shanghai)

* * * * root/usr/sbin/ntpdate ntp.api.bz

2, the rest of the server, with the root user set crontab scheduled tasks, every 10 minutes with the above this host one time synchronization, synchronization frequency can be set by itself, assuming that the above host's intranet IP is 192.168.10.1

0-59/10 * * * */usr/sbin/ntpdate 192.168.10.1

Linux Server Time synchronization method

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.