app running in background with port
command:
sudo netstat -tulnp | grep :5001
result:
tcp 0 0 0.0.0.0:5001 0.0.0.0:* LISTEN 28834/python
kill:
kill 28834
to find directly only pid:
lsof -t -i :5000 -s TCP:LISTEN
command:
sudo netstat -tulnp | grep :5001
result:
tcp 0 0 0.0.0.0:5001 0.0.0.0:* LISTEN 28834/python
kill:
kill 28834
to find directly only pid:
lsof -t -i :5000 -s TCP:LISTEN
Comments
Post a Comment