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

前端 未结 19 1472
礼貌的吻别
礼貌的吻别 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:43

    server.pid only contains the process ID of the running server.

    If you do:

    more /your_project_path/tmp/pids/server.pid
    

    you will get a number (say 6745) which you can use to stop the previous server with the command kill:

    kill -9 6745
    

    and then you can remove the file with the rm command

    rm /your_project_path/tmp/pids/server.pid
    

提交回复
热议问题