Created
April 5, 2022 21:03
-
-
Save majedbojan/02b0b0101e43b2b1998a5e43052becae to your computer and use it in GitHub Desktop.
Solving `Address already in use - bind(2) for 127.0.0.1:4000 (Errno::EADDRINUSE)` issue
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
# When you didn't shutdown the server wisely, | |
# you will encounter error that tells you the certain port is in use | |
# specially when running rails server | |
kill -9 $(lsof -i tcp:4000 -t) | |
# Note: | |
Change the `4000` upon on the port you are running on it |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment