A server is already running. Check …/tmp/pids/server.pid. Exiting - rails

前端 未结 19 1463
礼貌的吻别
礼貌的吻别 2021-01-29 20:35
..$ rails s
=> Booting WEBrick
=> Rails 4.0.4 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=>         


        
19条回答
  •  醉酒成梦
    2021-01-29 20:55

    Open the path/to/your/rails/project/tmp/pids/server.pid file.

    Copy the number you find therein.

    Run kill -9 [PID]

    Where [PID] is the number you copied from the server.pid file.

    This will kill the running server process and you can start your server again without any trouble.

提交回复
热议问题