[英]why can't I `rails server stop`
Why is there a rails server restart command given, but not a rails server stop? 为什么给出了Rails服务器重启命令,但没有Rails服务器停止?
$ bundle exec rails restart
$ bundle exec rails stop
rails aborted!
Don't know how to build task 'stop' (see --tasks)
You can use grep command to check for any Rails process: 您可以使用grep命令检查任何Rails进程:
ps aux | grep rails
And then to kill the specific process: 然后杀死具体过程:
kill -9 {process_id}
If you need to kill all Rails processes, you can try: 如果需要终止所有Rails进程,可以尝试:
killall -9 rails
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.