In the Linux Ubuntu system, to kill a process you have to first find the process, which you can do with sudo lsof -i :<port/pid/name> command, after that, you have to type sudo kill <PID/port/name> command on the terminal window
Best Programming Guides with Examples