how to stop server running on port 8080 ubuntu code example
Example 1: stop port ubintu
sudo kill -9 `sudo lsof -t -i:9001`
Example 2: how to stop running port in ubuntu
sudo kill -9 `sudo lsof -t -i:{PORT_NUMBER}`
Example 3: find process id of port ubuntu
$ sudo netstat -ltnp | grep -w ':80'
Example 4: hhow to stop port 8080 on ubuntu
kill $(lsof -t -i:8080)