find pid and stop server ubuntu rails s code example Example: how to stop rails server #from the terminal, type: (CTRL) + C