Kill a process using a specific port
Does this look famililar? Quick tip to find and kill the process using that port by using lsof
kill -9 $(lsof -t -i :<PORT>)
kill -9
The command kill sends the specified signal to the specified process or process group. If no signal is specified, the TERM signal is sent. The TERM signal will kill processes which do not catch this signal. For other processes, it may be necessary to use the KILL (9) signal, since this signal cannot be caught.
lsof
You can list the processes which are listening on a particular port by using ‘-i’ with ‘:’ Use ‘-t’ option to list output only the process id of the process