aix/hpux/linux/windows的ntp配置

HP-UX操作系统:
   1)后台登录10.1.5.11

   2)创建/etc/ntp.drift文件
   3)在/etc/ntp.conf文件中,添加:
     server 10.1.5.10 minpoll 1 maxpoll 4 prefer      (10.1.5.10为ntp server端,下同)
     driftfile /etc/ntp.drift
     编辑/etc/rc.config.d/netdaemons文件,更改一个参数:
     export XNTPD=1
     启动自动ntpd服务:
     /sbin/init.d/xntpd start
      driftfile /etc/ntp.drift
   4)编辑/etc/rc.config.d/netdaemons文件,更改一个参数:
      export XNTPD=1
   5)启动自动ntpd服务:
      /sbin/init.d/xntpd start

 

AIX操作系统:
   1)后台登录:10.1.10.12、

   2)创建/etc/ntp.drift、/etc/ntp.trace文件
   3)在/etc/ntp.conf文件中,添加:
      server 10.1.5.10 minpoll 1 maxpoll 4 prefer
      driftfile /etc/ntp.drift
      tracefile /etc/ntp.trace
   4)启动xntpd守护进程:
      smit xntpd

 

linux操作系统:
   1)后台登录:10.1.21.4

   2)在/etc/ntp.conf文件中,添加:
      server 10.1.5.10 minpoll 1 maxpoll 4 prefer
   3)启动自动ntpd服务:
      service ntpd start
      chkconfig --add ntpd
      chkconfig --level 234 ntpd on

 

windows操作系统:
   1)登录:10.1.22.4
   2)控制面板->管理工具->服务->windows time,启动
   3)cmd下,执行命令
      net time /setsntp:10.1.5.10
   4)重启windows time服务,调整改服务为自动启动方式
   5)双击桌面右下角时间,选择"internet时间",勾选"自动与internet时间服务器同步",服务器填写:10.1.5.10,点确定退出

posted @ 2013-04-28 09:39  啊may  阅读(567)  评论(0编辑  收藏  举报