Server is already running in Rails

后端 未结 15 1300
谎友^
谎友^ 2020-12-02 04:08

When I am starting rails server using rails s command it is showing A server is already running. Check C:/Sites/folder/Pids/Server.pids

Whe

15条回答
  •  半阙折子戏
    2020-12-02 04:59

    lsof -wni tcp:3000
    

    Then you should see the ruby process and you can run

    kill -9 processid
    

    you should be good to run the process now

    rails s thin
    

    running multiple processes doesn't seem like a good idea and from what i've read many people agree. I've noticed many memory leaks with rails unfortunately so I couldn't imagine having two processes running. I know with one overtime my page refreshes increasingly become slower because of the data being stored on memory.

提交回复
热议问题