ROR + A server is already running. Check …/tmp/pids/server.pid. Exiting

后端 未结 14 1863
渐次进展
渐次进展 2020-12-22 23:55

In my Rails Project, I am trying to run two different servers at different port. But it fails by giving this error at console.

C:\\Rails>rails s
=> Boo         


        
相关标签:
14条回答
  • 2020-12-23 00:40

    A simpler way in which I found lesser commands . Go to the path which says a server is running in your folder structure . Search for the file. On the file itself shows a number which is the process id that is currently running. Lets say if the number is 'x', then simply type this command into your terminal

    kill -9 x
    

    However, note that this works in Ubuntu. Not sure, if it works in other OS as well.

    0 讨论(0)
  • 2020-12-23 00:42

    I just had this problem, just deleted server.pid file and server works fine!

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