Created
May 25, 2016 21:41
-
-
Save mrtrom/c9c09d87efffe0625d1c522f84be591b to your computer and use it in GitHub Desktop.
Tell if a port is in use
This file contains 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
lsof -n -i4TCP:[PORT] | grep LISTEN | |
# lsof -n -i4TCP:27017 | grep LISTEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment