为什么我不能使Rails Server Stop停止?

时间:2018-09-29 20:50:11

标签: ruby-on-rails

为什么给出了Rails Server重新启动命令,但没有Rails Server停止的提示?

$ bundle exec rails restart
$ bundle exec rails stop
rails aborted!
Don't know how to build task 'stop' (see --tasks)

1 个答案:

答案 0 :(得分:0)

您可以使用grep命令检查任何Rails进程:

ps aux | grep rails

然后杀死特定进程:

kill -9 {process_id}

如果您需要终止所有Rails进程,可以尝试:

killall -9 rails