以root netstat -tnlp4e
, netstat -tnlp4e
包含一些没有所有者的侦听套接字。
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp 0 0 0.0.0.0:58245 0.0.0.0:* LISTEN 0 9578 -
lsof -n -i :58245
什么也没有返回。
以下search也没有发现:
for D in $(ls -1 /proc); do if [ -d $D -a -d "$D/fd" ];then ls -l $D/fd/ | grep 9578 fi done
我已经validation,search将返回sockets列表,因为我期望其他inode号码。
我认为在一个套接字上监听的内核将不会在netstat中显示一个PID,但不应该有这个套接字/ inode的其他logging?
我如何find什么是在这个sockets上听?
(Ubuntu 14.04,linux 3.13.0-24-generic)
我99%肯定是在nfs
内核模块。 停止nfs-kernel-server,卸载共享的所有nfs,然后监听端口将会消失。