Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do i stop the rails sever?

I run this command to start my server

rails s -b 10.x.x.x

then I got this error

[1013] * Puma version: 5.2.2 (ruby 2.6.3-p62) ("Fettisdagsbulle")
[1013] *  Min threads: 2
[1013] *  Max threads: 2
[1013] *  Environment: development
[1013] *   Master PID: 1013
[1013] *      Workers: 1
[1013] *     Restarts: (✔) hot (✖) phased
[1013] * Preloading application
Exiting

Address already in use - bind(2) for "10.x.x.x" port 3000 (Errno::EADDRINUSE)

How do I stop this current running server 10.x.x.x:3000?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There are several utilities to get the PID of a proccess listening on a port.

lsof -i :3000

Will get you the PID and then you can kill it with kill [PID] or force it with kill -9 [PID]

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading