my space

Stop service running on port

command

September 16, 2020

Windows

netstat -ano | findstr "PID: <port>"

Then use taskkill

taskkill /pid <pid> /f

Unix

netstat -vanp tcp | grep <port>

Then use kill

sudo kill -9 <pid>

gie

Written by gie who lives and works in Bangkok. Build things by code.
my twitter | github