5

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.

4

3 回答 3

3

用于sudo查看所有字段。

$ sudo netstat -p 

另外,我喜欢使用sudo netstat -pant它,因为它很容易记住,而且我几乎总是只对查看 TCP 信息感兴趣。

于 2012-02-27T08:53:05.500 回答
1

Maybe this is a permissions problem, you can try sudo ?

于 2012-02-27T08:54:06.830 回答
1

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


sudo netstat -p

于 2012-02-27T08:54:32.990 回答