首页 » 系统相关 » rdate 配置时间同步

rdate 配置时间同步

--mount linux iso image

[root@rac1 Server]# rpm -ivh xinetd-2.3.14-10.el5.i386.rpm 
warning: xinetd-2.3.14-10.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:xinetd                 ########################################### [100%]
   
root@rac1 Server]# chkconfig xinetd on

[root@rac1 Server]# cd  /etc/xinetd.d/
[root@rac1 xinetd.d]# ls
chargen-dgram   daytime-stream  echo-stream   klogin       rsync
chargen-stream  discard-dgram   eklogin       krb5-telnet  tcpmux-server
cvs             discard-stream  ekrb5-telnet  kshell       time-dgram
daytime-dgram   echo-dgram      gssftp        rmcp         time-stream


[root@rac2 ~]# rdate -s 192.168.168.178
rdate: couldn't connect to host 192.168.168.178: Connection refused


--rhel 5 modify disable = yes 
[root@rac1 xinetd.d]# vi time-stream 

# This is the configuration for the tcp/stream time service.

service time
{
# This is for quick on or off of the service
        disable         = no 

[root@rac1 xinetd.d]# service xinetd restart
Stopping xinetd:                                           [  OK  ]
Starting xinetd:                                           [  OK  ]

[root@rac2 ~]# rdate -s 192.168.168.178
ok

注意iptables 开放端口。

增加crontab自动同步。
打赏

对不起,这篇文章暂时关闭评论。