Kill localhost:3000 process from Windows command line

后端 未结 2 1912
予麋鹿
予麋鹿 2020-12-10 06:49

So im using ruby on rails in windows (i hear you all spitting your coffee onto the screen), its only a short term thing. (using ubuntu at home) So i tried to fire up webric

相关标签:
2条回答
  • 2020-12-10 07:47

    Try using netstat -a -o -n to determine the pid of the process running on port 3000. Then you should be able to use taskkill /pid #### to kill whatever process is running on that port.

    Probably not the most graceful way to do it, but I think it should work.

    EDIT

    You'll probably have to also use the /F flag to force-kill the process. I just tried it on my local machine, and that worked fine.

    0 讨论(0)
  • 2020-12-10 07:49

    Go into rails_project\tmp\pids and delete the .pid file in there.

    run:

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