Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[教程] FreeBSD安装 eAccelerator 0.9.6 报错

[复制链接]
enhand 发表于 2011-2-10 14:57:11 | 显示全部楼层 |阅读模式

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
试试看
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-9-22 19:30 , Processed in 0.101465 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表