rdate server setup centos | Shirker's blog

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]

posted on 2012-07-04 14:32  lexus 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/lexus/archive/2012/07/04/2576179.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值