User Tools

Site Tools


linux:netstat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
linux:netstat [2013/12/03 23:42] – created percylinux:netstat [2013/12/03 23:43] percy
Line 2: Line 2:
 Find the process used the specific port Find the process used the specific port
   netstat -anp|grep 8080   netstat -anp|grep 8080
 +  
 +<code bash>  
 +root@pjq:~# netstat -anpl|grep 8080
 +tcp        0      0 127.0.0.1:8080          0.0.0.0:              LISTEN      26062/sshd: root
 +tcp6            0 ::1:8080                :::*                    LISTEN      26062/sshd: root
 +root@pjq:~# kill 26062
 +</code>
 +
      
 http://colinharrington.net/blog/2010/12/which-process-has-that-port-open-linux-netstat-anp/ http://colinharrington.net/blog/2010/12/which-process-has-that-port-open-linux-netstat-anp/
/var/www/dokuwiki/wiki/data/pages/linux/netstat.txt · Last modified: 2016/05/05 13:07 by 127.0.0.1