find php proccess running on port 5000 code example
Example 1: kill port
sudo kill -9 $(sudo lsof -t -i:8080)
Example 2: debian kill open port
fuser -k 3000/tcp //will kill that process.
sudo kill -9 $(sudo lsof -t -i:8080)
fuser -k 3000/tcp //will kill that process.