Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: task and port number?



 On Tue, 18 Dec 2007, Scott Ehrlich wrote: 

> On a Linux system, if a program claims that a port is in use (say I want 
> to install a web server on port 80, but the web server claims port 80 is 
> already in use, and a ps auwx doesn't show/claim a web server is running), 
> is there a program that can tell me what application is using the port? 
> 
> netstat -a will show apps and their PIDs, then later what ports are open, 
> but no direct port <-> app mapping. 

"netstat -ap" should add the program name and pid. 

Personally I tend to use lsof instead. 

"lsof -n -i :80" should show you what process is bound to port 80 

-- 
This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean. 

_______________________________________________ 
Discuss mailing list 
[hidden email] 
http://lists.blu.org/mailman/listinfo/discuss
 


BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org