HP-UX上要实现时间同步 HP-UX上要实现时间同步,需要设置时间服务器和客户端,相关的进程是xntpd 配置文件 /etc/ntp.conf /etc/ntp.drift 在client上自己建立,用作drift文件 /etc/rc.config.d/netdaemons 执行文件 /usr/sbin/xntpd 运行脚本 /sbin/init.d/xntpd {start|stop} 配置方法 服务器端 1. 编辑/etc/ntp.conf 添加一行 server 127.127.1.1 2. 编辑/etc/rc.config.d/netdaemons 更改两个参数的值 export ntpDATE_SERVER=127.1...
做了一个通讯延时的测试 A每隔10S向B发一个消息 B记录各消息之间的时间间隔 我在同一台机子上测试时,时间间隔在10S左右 但是,把A和B运行在不同的机子上时时间间隔有很大的变化 有的是4S左右,有的是20S左右 好象在哪看到过说这个函数计时不准确,但具体不知道是怎么回事了 麻烦高手指点一下
the sysdate should be easily transplant to string type! is there any system call like that in unix system?? thank you for your help!!
HP-UX下 ntp 三种实现方法: 1、由客户端发起,让客户端主动向 服务器 发起轮询。 典型配置: 服务器配置: /etc/ntp.conf: server 127.127.1.1 fudge 127.127.1.1 startum 10 /etc/rc.confid.d/netdaemons: export ntpDATE_SERVER= export XntpD=1 export XntpD_ARGS= 客户端配置: /etc/ntp.conf: server servername driftfile /etc/ntp.driftfile /etc/rc.conf...