Ubuntu

Manually closing a port from command line

공부운동 2022. 1. 17. 11:52
sudo netstat -ap | grep :<port_number>

PID / Program name 항목에서 PID를 찾는다.

 

kill <PID>

or

kill -9 <PID>

 

[참고] https://superuser.com/questions/127863/manually-closing-a-port-from-commandline/389252