FreeBSD安装 eAccelerator 0.9.6 报错
freeBSD 8.0 64位系统 ports安装 eAccelerator 0.9.6 报这个错误
php是 5.2.13
#php-cgi -v
eAccelerator: shmmax should be at least 2MBPHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0
#php -v
shmget() failed: Cannot allocate memory
Failed to start up concurrent users module!
PHP 5.2.13 with Suhosin-Patch 0.9.7 (cli) (built: May 28 2010 12:29:03)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator
with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
with Zend Optimizer v3.3.0, Copyright (c) 1998-2007, by Zend Technologies
内核参数默认的没有修改过
#sysctl -a | grep shmm
kern.ipc.shmmni: 192
kern.ipc.shmmin: 1
kern.ipc.shmmax: 33554432
答案或建议:
在编译的时候加上
with-eaccelerator-shared-memory=yes
试试看
------------
谢谢,我已经搞好了,也是加了这个参数。
本文转载链接:http://www.baikewenda.com/h/1010/a36600.html