Can't run Rails server

Posted by Ben McLaren

over 2 years ago

0

pid ruby server rails terminal

Error message:

A server is already running / Address already in use


You may need to kill the ruby process.

Type the following in your terminal:

lsof -i :3000
This should return a PID number for the ruby process.

example.png 13.4 KB
You can then type in your terminal:

kill PID_NUMBER
In this example the PID_NUMBER is 33446. This should kill the ruby process. Now try running your rails server again!