the shell command netstat -p , doesn't display the pid. It displays "-" like this:
tcp 0 0 *:2181 *:53837 ESTABLISHED -
why?
It still display "-" although I use root to login.
用于sudo
查看所有字段。
$ sudo netstat -p
另外,我喜欢使用sudo netstat -pant
它,因为它很容易记住,而且我几乎总是只对查看 TCP 信息感兴趣。
Maybe this is a permissions problem, you can try sudo ?
Please go through the following documentation regarding netstat command:
http://www.cisco.com/en/US/products/hw/modules/ps2643/products_tech_note09186a00800fad79.shtml
try the command with sudo and see