WELCOME Abdennour : Software engineer

Nov 21, 2012

How to close a port with netstat



For Example , you want to close the port 8888  .

So , Just you use two commands : 

1) Knowing the Process which uses the port :

     $ sudo netstat -ap | grep 8888

2)Kill this process : 

     $  kill -9 4825



Note : 4825 is the PID of process . 









No comments:

Post a Comment