: Xiao Cheng was released on: 2013-10-811: 31 classification: when the operating system configures multiple servers, it is often necessary to synchronize the time between each server. if the server has an Internet environment, the update time can be directly the same as the external time server. you can use the rdate command to update the time: rdate-s & #65279; tick.greyware.com. you can write a script and put it in/etc/cron. in hourly, time is corrected every hour. In an intranet environment, you can configure a time
: Xiaocheng was released at:. Category: Operating system
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 first
yum install -y xinetd rdate
2. modify/etc/xinetd. d/time-stream. modify:
Change disable = yes to 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