how to kill a port in terminal code example
Example 1: kill port
kill -9 $(sudo lsof -t -i:8080)
Example 2: kill port
kill -9 $(lsof -t -i tcp:8080)
Example 3: kill port
kill -9 $(lsof -t -i:8080)
Example 4: release a port in mac
sudo lsof -i :<port>
Example 5: how to stop a port in macos
kill -9 port