Why is there a rails server restart command given, but not a rails server stop?
$ 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:
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:
killall -9 rails
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.