about to search or kill the process and the port in the linux

firstly,we should know one point! the process and the port is one by one,so once we kill the process ,the port will be close!

netstat -anp | grep xxx  //xxx:what is about the number of the port

and the results have the pid,name of the process ,and we could use the "kill pid"to kill the procee ,and the port will be closed right now!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章