作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
一下子,我的nginx错误日志全是这个错误信息
[ 2013-10-31 22:56:41.2124 19959/7ff254aae700 Pool2/Group.h:964 ]: Cannot disable sole enabled process in group /app/current#default because spawning is not allowed according to the current configuration options
/app/current
是我的 rails 应用程序所在的文件夹(它是
Rails.root
)
configuration option
在这里被引用。我该如何解决这个错误?
passenger_root /usr/local/rubies/1.9.3-p448/lib/ruby/gems/1.9.1/gems/passenger-4.0.20;
passenger_ruby /usr/bin/ruby_tuned;
passenger_max_pool_size 6;
passenger_spawn_method smart-lv2;
passenger_buffer_response on;
passenger_min_instances 5;
passenger_max_instances_per_app 0;
passenger_pool_idle_time 180;
passenger_max_requests 20;
最佳答案
您可能正在使用 out-of-band work但配置错误。从手册:
"Ensure that passenger_max_pool_size and passenger_min_instances are both larger than 1. Out-of-band work only works if there are at least 2 application processes."
关于nginx - 是什么导致乘客抛出这个错误 "Cannot disable sole enabled process in group because spawning is not allowed ..."?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19712933/
我是一名优秀的程序员,十分优秀!