Skip to content

Instantly share code, notes, and snippets.

@majedbojan
Created April 5, 2022 21:03
Show Gist options
  • Save majedbojan/02b0b0101e43b2b1998a5e43052becae to your computer and use it in GitHub Desktop.
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
# 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