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