how to kill running port in linux code example
Example 1: kill port
kill -9 $(sudo lsof -t -i:8080)
Example 2: 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)"
kill -9 $(sudo lsof -t -i:8080)
kill -9 $(sudo lsof -t -i:'portName')
//Ex. if portname is 3000
//then we will execute "kill -9 $(sudo lsof -t -i:3000)"