精华区 [关闭][返回]

当前位置:网易精华区>>讨论区精华>>电脑技术>>● FreeBSD>>有待整理的文章-新加的文章都在这里>>freebsd网络校准时间补充

主题:freebsd网络校准时间补充
发信人: mylife(nayer)
整理人: hackerbay(2002-09-06 16:48:52), 站内信件
/etc/rc.conf: 
---------------------------------------------------------------------------
#ntp configuration 
ntpdate_enable="YES"            #启动时对时
ntpdate_flags="133.100.9.2"     #此处需用ip,因为DNS可能尚未启动
xntpd_enable="YES"      # Run xntpd Network Time Protocol (or NO).
xntpd_program="xntpd"   # path to xntpd, if you want a different one.
xntpd_flags="-c /etc/ntp.conf -p /var/run/xntpd.pid"  # Flags to xntpd (if enabled).

/etc/ntp.conf: 
---------------------------------------------------------------------------
server clock.nc.fukuoka-u.ac.jp 
driftfile /etc/ntp.drift       //临时文件
broadcast 192.168.1.255        //对外广播时间的广播地址


----
 明天会更美好

[关闭][返回]