Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:20048 0.0.0.0:* LISTEN 285221/rpc.mountd
tcp 0 0 0.0.0.0:33409 0.0.0.0:* LISTEN 102039/rpc.statd
tcp 0 0 0.0.0.0:2049 0.0.0.0:* LISTEN -
I'm aware that running netstat without root privilage can hide some PID, but I ran netstat as root, then why some LISTEN port doesn't have PID, how come?
after searching a while on the Internet, I assume it's because the LISTEN port is managed by the kernel itself (?)
I tried using the lsof
command, but still can't identify the PID, and finally I was able to figure it out using rpcinfo -p
command.
and turns out, the service that responsible for port 2049
is nfs
.