ntp client设置后使用ntpq -p出问题
在DNS服务器上起ntp服务,ntp.conf文件内容如下:# ident "@(#)ntp.client 1.3 00/07/17 SMI"
#
# /etc/inet/ntp.client
#
# An example file that could be copied over to /etc/inet/ntp.conf; it
# provides a configuration for a host that passively waits for a server
# to provide NTP packets on the ntp multicast net.
#
server 133.100.9.2
fudge 133.100.9.2 stratum 0
#multicastclient 224.0.1.1
driftfile /var/tmp/ntp.drift
检查xntp进程正常
$ps -ef |grep ntp
usr880687920 17:34:58 pts/1 0:00 grep ntp
root8772 10 16:53:44 ? 0:00 /usr/lib/inet/xntpd
使用ntpq -p出现如下显示:
$./ntpq -p
localhost: timed out, nothing received
***Request timed out
ntpdate 所用ntp server
ntpdate 202.97.224.83
8 Nov 17:40:00 ntpdate: the NTP socket is in use, exiting
netstat -an有如下结果,显示
UDP: IPv4
Local Address Remote Address State
-------------------- -------------------- -------
*.111 Idle
……
*.123 Idle
123端口为空闲
是否我的123端口没有起用啊?这种情况应该怎么处理?
使用netstat -an 查看,显示如上结果 在/etc/hosts添加了"127.0.0.1 localhost.localdomain localhost"这行
页:
[1]