rdate server setup centos | Shirker's blog

系统 2050 0

rdate server setup centos | Shirker's blog

rdate server setup centos

2012 June 20

Posted by shirker2006

http://www.articlesbase.com/networks-articles/public-rdate-server-3288423.html

rdate  is a  Linux command  and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything).

rdate  is the older standard that in many cases is now replaced by ntp/ntpd. Unlike ntp, rdate sets the new time instantly and is more suitable in situations like initial setup. Abrupt change of the clock settings may cause problems for some software (ntp changes time gradually). However ntp may not be available in some systems and during some initial setups is actually desired to set the correct time as soon as possible.

Under Linux, rdate does not have its own network service and is supported by the standard time service instead. It uses port 37 and can work via TCP or UDP (with -u switch).

This is tutorial  How to public RDate Server .

Public RDate server need two packages:  xinet & ntp

Step 1:

On CentOS execute command:

#yum install xinet ntp

Step 2:

Enable time-stream in xinet by modify File /etc/xinetd.d/time-stream using command

#vi /etc/xinetd.d/time-stream

Search and replace with:

disable = no

#only_from = localhost

Step 3:

Start two services with commands:

#service ntpd start

#service xinetd start

Note:  The service is a daemon listening on port 37 (TCP & UDP) on iptables using command:

#iptables -I INPUT -p tcp –dport 37 -j ACCEPT

#iptables -I INPUT -p udp –dport 37 -j ACCEPT

And after that restart iptables service with command:

#service iptables restart

Using RDate command sync to date system

#rdate -s [ip address]

rdate server setup centos | Shirker's blog


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论