- 论坛徽章:
- 0
|
本帖最后由 slowhand 于 2010-06-11 13:48 编辑
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
# uname -a
FreeBSD websever 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Tue May 25 20:54:11 UTC 2010 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 |
|