Search code examples
windowsruby-on-rails-3webrick

How do I kill a rails webrick server?


When I try to start a server via rails s, I get the following error message:

C:\Users\Frankie\Documents\stocktracker>rails s
=> Booting WEBrick
=> Rails 3.2.8 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
A server is already running. Check C:/Users/Frankie/Documents/stocktracker/tmp/p
ids/server.pid.
Exiting

The number listed in server.pid is 8436.

How do I manually kill this process? How can I easily kill all webrick servers currently running?


Solution

  • You can use the taskkill utility.

    taskkill /PID 8436