为什么给出了Rails Server重新启动命令,但没有Rails Server停止的提示?
$ bundle exec rails restart
$ bundle exec rails stop
rails aborted!
Don't know how to build task 'stop' (see --tasks)
答案 0 :(得分:0)
您可以使用grep命令检查任何Rails进程:
ps aux | grep rails
然后杀死特定进程:
kill -9 {process_id}
如果您需要终止所有Rails进程,可以尝试:
killall -9 rails