terminal kill used port code example
Example 1: kill port in mac terminal
sudo lsof -i :5955
Example 2: kill port mac terminal
sudo lsof -i <Port>
sudo kill -9 <PID>
sudo lsof -i :5955
sudo lsof -i <Port>
sudo kill -9 <PID>