Find PID of process locking port: #

sudo lsof -t -i :<PORT>
1

Kill process: #

kill -9 <PID>
1

Powered by VuePress
Copyright 2010-2024 Thai Nguyen Hung all rights reserved.