fpm


deb http://nginx.org/packages/ubuntu/ precise nginx
deb-src http://nginx.org/packages/ubuntu/ precise nginx



2013/04/26 04:01:05 [crit] 6119#0: *4 connect() to unix:/var/run/php5-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 159.5
3.110.141, server: 216.238.88.42, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "216.238.88.42:9090



;   '/path/to/unix/socket' - to listen on a unix socket.                                                                                                       
; Note: This value is mandatory.                                                                                                                               
listen = 127.0.0.1:9000 


/etc/nginx/conf.d

change to
listen = /var/run/php5-fpm.sock

touch /var/run/php5-fpm.sock

chmod 777 /var/run/php5-fpm.sock


install memcached
http://www.thefanclub.co.za/how-to/how-install-memcached-on-ubuntu-for-drupal

# Start with a cap of 64 megs of memory. It's reasonable, and the daemon default
# Note that the daemon will grow to this size, but does not start out holding this much
# memory
-m 4096

install apc cache
http://curltable.the-yard.net/blog/install-apc

extension=apc.so                                                                                                                                               
apc.shm_size=80M


vi php.ini

                                                                                                                                                               
; Maximum amount of memory a script may consume (128MB)                                                                                                        
; http://php.net/memory-limit                                                                                                                                  
memory_limit = 188M



vi php5-fpm

user = www-data                                                                                                                                                
group = www-data


; Note: This value is mandatory.                                                                                                                               
pm.max_children = 70

; The number of child processes created on startup.                                                                                                            
; Note: Used only when pm is set to 'dynamic'                                                                                                                  
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2                                                                               
pm.start_servers = 5


; The desired minimum number of idle server processes.                                                                                                         
; Note: Used only when pm is set to 'dynamic'                                                                                                                  
; Note: Mandatory when pm is set to 'dynamic'                                                                                                                  
pm.min_spare_servers = 5

; The desired maximum number of idle server processes.                                                                                                         
; Note: Used only when pm is set to 'dynamic'                                                                                                                  
; Note: Mandatory when pm is set to 'dynamic'                                                                                                                  
pm.max_spare_servers = 15 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值