Server is already running in Rails

后端 未结 15 1209
谎友^
谎友^ 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

    Just open that C:/Sites/folder/Pids/Server.pids and copy that 4 digit value.that 4 digit value is nothing but a PID, which you need to kill to stop the already running process.

    then to stop the process use below command

     kill -9 <pid>
    

    once that already running process get stopped then hit

    rails s to start the rails server

    0 讨论(0)
  • 2020-12-02 05:10

    Remove the file: C:/Sites/folder/Pids/Server.pids

    Explanation In UNIX land at least we usually track the process id (pid) in a file like server.pid. I think this is doing the same thing here. That file was probably left over from a crash.

    0 讨论(0)
  • 2020-12-02 05:11

    It happens when you kill your server process and the pid file was not updated. The best solution is to delete the file Server.pid.

    Use the command

    rm <path to file Server.pid>

    0 讨论(0)
提交回复
热议问题