Can't stop rails server

前端 未结 27 1966
别跟我提以往
别跟我提以往 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:43

    Use ctrl+c to shutdown your Webrick Server.

    Unfortunately if its not works then forcefully close the terminal and restart it.

    Another trick is that

    1. open your system-monitor(a gui application) on ubuntu
    
    2. Select processes tab 
    
    3. Then look for a process having name 'ruby'
    
    4. End that process
    
    0 讨论(0)
  • 2020-12-04 05:44

    you can use grep command in following way,

    ps aux | grep rails
    

    and then

    kill -9 {process_id} 
    
    0 讨论(0)
  • 2020-12-04 05:44

    On my MAC the killall -9 rails does not work. But killall -9 ruby does.

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