solaris 10 多個機器同步時間(利用rdate)

wisdomone1發表於2009-07-15

標記同步雙機時間
host1:date
host2:rdate host1  --一機時間是好的,根據一機同步二機
rdate執行出錯
# man rdate
Reformatting page.  Please Wait... done

System Administration Commands                          rdate(1M)

NAME
     rdate - set system date from a remote host

SYNOPSIS
     rdate hostname

DESCRIPTION
     rdate sets the local date and time from the  hostname  given
     as   an   argument.   You   must   have   the  authorization
     solaris.system.date on the local system. Typically, rdate is
     used in a startup script.

     rdate requests are responded to by the "time" service on the
     specified  host.  To enable the "time" service, use the fol-
     lowing commands:

     svcadm enable time:stream
     svcadm enable time:dgram


然後在
host1 and host2
執行
svcadm enable time:stream
svcadm enable time:dgram

問題搞定 --記得作完後檢視下date

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-609183/,如需轉載,請註明出處,否則將追究法律責任。

相關文章