Answers for "linux kill service on port"

34

kill port

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

kill port 80 linux

sudo lsof -i tcp:80
#or
sudo lsof -t -i tcp:80 | sudo xargs kill
Posted by: Guest on September-21-2021
2

kill a port

kill $(lsof -ti:3000)
Posted by: Guest on January-16-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

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language