When I encounter "a server is already running" I use below command to solve this issue
lsof -wni tcp:3000"
kill -9 pid
I undertand lsof
, but don't understand why "-wni"
, does anybody know what "-wni" stands for?
Also I could use lsof -i tcp:3000
, but what is the difference between lsof -i tcp:3000 and lsof -wni tcp:3000?
Thanks.