command to kill a process in linux according to port number code example
Example 1: debian kill open port
fuser -k 3000/tcp //will kill that process.
Example 2: kill linux port
sudo fuser -k 1883/tcp
fuser -k 3000/tcp //will kill that process.
sudo fuser -k 1883/tcp