kill process lsof code example
Example 1: how to kill a process with linux
ps ux #list the running proccess
kill -9 <PID>
Example 2: how to kill running process in linux
ps ux # list the running Process with PID
kill xxxx # hear xxxx is the process id
Example 3: lsof kill pid
lsof -i:3000 // Change 3000 to whatever your port is!
sudo kill 9 <PID> // Change <PID> to the Pid number the above command returns