Configuring rdate time server tutorial under Linux

  
        

When you 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 the external time server time, you can use the command rdate Updated:

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

Copyright © Windows knowledge All Rights Reserved