Last active
April 11, 2019 07:35
-
-
Save whomwah/6068816 to your computer and use it in GitHub Desktop.
[lsof] Check if port is being used #bash
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
# Run this command | |
lsof -i :3000 | |
~/_dev/kyan/project(kyan_rails_3_2_13_upgrade) $ lsof -i :3000 | |
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME | |
ruby 8511 duncan 15u IPv4 0xf8ff7ea926138439 0t0 TCP *:hbci (LISTEN) | |
# kill the rogue PID | |
kill 8511 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment