How to configure the rdate time server in Linux

Source: Internet
Author: User

When configuring multiple servers, you often need to synchronize the time between each server. If the server has an Internet environment, you can directly update the time at the same time as the external server. You can use the rdate command to update the time:

Rdate-s tick.greyware.com

You can write a script and place it in/etc/cron. hourly to correct the time every hour.

In an Intranet environment, you can configure a time server by yourself. Take CentOS as an example. You can configure the time server as follows:

1. install xinetd: sudo yum install-y xinetd first

2. Modify/etc/xinetd. d/time-stream: www.111cn.net

Change disable = yes

Disable = no

3. Start xinetd

Service xinetd start

In this way, other machines can synchronize time with the machine through rdate.

Rdate-s ip Address

For more details, see: http://www.111cn.net/sys/linux/52557.htm

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.