Answers for "How to close a port on ubuntu"

34

kill port ubuntu

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

how to stop running port in ubuntu

sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`
Posted by: Guest on March-30-2020
0

kill port ubuntu

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

kill a port in ubuntu

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 "Shell/Bash"

Browse Popular Code Answers by Language