免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4051 | 回复: 0
打印 上一主题 下一主题

标记同步双机时间 [复制链接]

论坛徽章:
1
子鼠
日期:2014-09-16 12:37:52
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-07 15:40 |只看该作者 |倒序浏览
host1:date
host2:rdate host1  --一机时间是好的,根据一机同步二机
rdate运行出错
root@qhaaa2 # 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP