Linux system how to configure rdate time server

  

Linux rdate command is mainly used to display the date and time of other hosts, to achieve time synchronization, the following small series will introduce you how to configure the human time server under Linux, learn together Let's go. When

configure multiple servers, often need to allow time between the individual servers in sync, if there is a server outside the network environment, you can update directly with an external time server, you can use the command update rdate :

rdate -s tick.greyware.com

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

If it is an intranet environment, you can configure a time server yourself. Take CentOS as an example. The method for configuring the time server is as follows:

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

2. Modify /etc/xinetd.d/time-stream, modify:

disable = yes to

disable = no

3. Start xinetd

service xinetd start

This way other machines can synchronize time with the machine via rdate

rdate -s ip

The method of configuring the rdate time server is introduced. Generally, the probability of using the rdate command is relatively small. If you want to maintain time synchronization between multiple servers, using rdate is the best choice.

Copyright © Windows knowledge All Rights Reserved