打开没有关联 PID 的端口

打开没有关联 PID 的端口

我的笔记本电脑上有一些开放端口,但netstat没有报告与它们关联的 PID/程序:

$ netstat -tulpn
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:8307          0.0.0.0:*               LISTEN      -                   
tcp        0      0 192.168.122.1:53        0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:13819           0.0.0.0:*               LISTEN      32107/skype         
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      -                   
tcp        0      0 0.0.0.0:902             0.0.0.0:*               LISTEN      -                   
tcp6       0      0 :::443                  :::*                    LISTEN      -                   
tcp6       0      0 :::902                  :::*                    LISTEN      -                   

我怎样才能知道哪个进程打开了这些?尤其443

答案1

暗示:

(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)

尝试使用 sudo 运行 netstat,即sudo netstat ...

相关内容