I will explain what to do when you can not stop the server with Ctrl + C
, such as when you close the terminal where you typed the rails server
command.
macOS Catalina version 10.15.7
rails server
$ lsof -i:3000
When run, it will display the process number (PID) of the currently running rails server
.
kill
commandExecute the kill
command with the displayed process number (PID).
$ kill -9 process number(PID)
This will stop it.
Recommended Posts