Answers for "how to kill a process on a port"

34

kill port

sudo kill -9 `sudo lsof -t -i:9001`
Posted by: Guest on May-03-2020
1

kill all process at port

lsof -ti tcp:2525 | xargs kill
Posted by: Guest on November-06-2020
0

kill a port

kill $(lsof -t -i:8080)
//kill port 8080
Posted by: Guest on March-27-2020
2

kill port

kill -9 $(lsof -t -i tcp:8080)
Posted by: Guest on May-23-2020
1

stop a process running on a port

# Print PID of process bound on that port.
fuser 8080/tcp

# Kill that process
fuser -k 8080/tcp
Posted by: Guest on May-01-2020
1

kill port

kill -9 $(sudo lsof -t -i:'portName')
//Ex. if portname is 3000
//then we will execute "kill -9 $(sudo lsof -t -i:3000)"
Posted by: Guest on January-21-2021

Code answers related to "how to kill a process on a port"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language