Can't stop rails server

前端 未结 27 2157
别跟我提以往
别跟我提以往 2020-12-04 05:12

I am new to rails and I am using an ubuntu machine and the rubymine IDE. The problem is that I am unable to stop the rails server. I tried to stop the server by killing the

27条回答
  •  一向
    一向 (楼主)
    2020-12-04 05:23

    Step 1: find what are the items are consuming 3000 port.

    lsof -i:3000
    

    step 2 : Find the process named

    For Mac

    ruby      TCP localhost:hbci (LISTEN)
    

    For Ubuntu

    ruby      TCP *:3000 (LISTEN)
    

    Step 3: Find the PID of the process and kill it.

    kill -9 PID
    

提交回复
热议问题