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

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

    Run given below command on terminal ( for linux only )

    ps aux | grep rails
    

    and then

    kill -9 [pid]
    

    Another way

    lsof -wni tcp:3000
    

    and then

    kill -9 [PID]
    

提交回复
热议问题