ลิงก์ผู้สนับสนุน

วันพฤหัสบดีที่ 12 มีนาคม พ.ศ. 2558

How to close TCP ports


1. use netstat -np to show process name,pid,port
2. use lsof -np $PID to find location of process
3. use kill $PID to kill process if it not work try to use kill -9 $PID , service $ServiceName stop



reference :
http://superuser.com/questions/127863/manually-closing-a-port-from-commandline
http://www.thegeekstuff.com/2012/08/lsof-command-examples/