passenger for nginx configuring

read passenger for nginx configuring , record
1 passenger_root
2 passenger_log_level 0 1 2 3 日志级别
3 passenger_ruby choose ruby
4 passenger_use_global_queue on or off default off 。on or off have 5% minor performance .
5 passenger_user_switching on or off default on
6 passenger_default_user default nobody
7 passenger_enabled on or off .this is important default disable

8 passenger_max_pool_size default 6. the value should be at least equal to the number of CPUs (or CPU cores) that you have. If your system has 2 GB of RAM, then we recommend a value of 30. If your system is a Virtual Private Server (VPS) and has about 256 MB RAM, and is also running other services such as MySQL, then we recommend a value of 2
9 passenger_max_instances_per_app default 0
10 passenger_pool_idle_time default 300 second

11 rails_env
12 rails_spawn_method default smart-lv2
13 rails_framework_spawner_idle_time 1800
14 rails_app_spawner_idle_time 600

http://www.modrails.com/documentation/Users%20guide%20Nginx.html#moving_phusion_passenger
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值