How do you stop a rails server from the command line?
Way 1: Just type: Ctrl + C in the terminal where your server is running.
Way 2: Another way of doing it:
In your terminal to find out the PID
of the process:
$ lsof -wni tcp:3000
Then, kill the process:
$ kill -9 PID
Way 3: You can also use the following command to kill all running apps with rails
in the name:
killall -9 rails