the murmurous sea

How to kill a port 본문

#dev/개념정리

How to kill a port

lunacer 2021. 4. 16. 14:06

To find the process ID, try:

sudo lsof -i :portNumber

Kill the process which is currently using the port using its PID

kill PID

and then check to see if the port closed. If not, try:

kill -9 PID

I would only do the following if the previous didnt work

sudo kill -9 PID

 

@

stackoverflow.com/questions/12397175/how-do-i-close-an-open-port-from-the-terminal-on-the-mac

'#dev > 개념정리' 카테고리의 다른 글

React state vs. Redux state  (0) 2021.05.26
app.get() vs. router.get()  (0) 2021.04.15
UX/UI: Branding  (0) 2021.01.26
UX/UI: what makes good web design  (0) 2021.01.23
UI: Responsive layout grid  (0) 2020.10.28
Comments