-
-
Save HarrisHan/c59f03bfb0105383c5532d1c33dfc771 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
netstat -vanp tcp | grep 3000 | |
sudo lsof -i tcp:3000 | |
kill -9 PID | |
kill $(lsof -t -i :YOUR_PORT_NUMBER) | |
echo 'free-port() { kill "$(lsof -t -i :$1)"; } | |
kill-port() { kill -kill "$(lsof -t -i :$1)"; }' \ | |
>> ~/.bashrc && source ~/.bashrc | |
cat # Concatenate and print files to stdout | |
| grep |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment