• Post Reply Bookmark Topic Watch Topic
  • New Topic

killing ports  RSS feed

 
san ch
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I want to know how to kill a port which is listening.
i Have given netstat -a|grep "LISTEN" which gives me all the ports which are listening,however it doesnt giv me the PID through which i can kill the port....can anybody help me with this

Thank you in advance
Santosh
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
will show you the PID.
[ January 16, 2006: Message edited by: Stefan Wagner ]
 
san ch
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi stefan

i dont have any manual entry for lsof is it a package i have to install?coz i tried in solaris 10 and tried in linux (redhat) it says command not found
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!