[NTLUG:Discuss] Re: port busy - How do I kill or shutdown listen?

Robert Thompson ntlug at thorshammer.org
Fri Aug 5 19:24:17 CDT 2005


You'll want to use the -i option for lsof (list open files). Here are 
the options from the man pages:

-i [46][protocol][@hostname|hostaddr][:service|port]

So to see what's running on that port you could use the following:

# lsof -i :9050

Rob T


Bryan J. Smith wrote:

> Joe Compton <compton at gp2energy.com> wrote:
> 
>>I have installed TOR and it dies because the port (9050) is
>>busy.  How do I clear the port for TOR??  
> 
> 
> Based on your netstat listing, it's not giving you much to go
> on.  But "lsof" is a godsend in finding not only what files
> are open, but what sockets are as well.
> 
> I install it on all my UNIX/Linux systems.
> 
> 




More information about the Discuss mailing list