how to kill something on a port terminal code example
Example 1: kill port
kill -9 $(sudo lsof -t -i:8080)
Example 2: kill port mac terminal
sudo lsof -i <Port>
sudo kill -9 <PID>
kill -9 $(sudo lsof -t -i:8080)
sudo lsof -i <Port>
sudo kill -9 <PID>