全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2049|回复: 3
打印 上一主题 下一主题

是不是没有shm就用不了eaccelerator?

[复制链接]
跳转到指定楼层
1#
发表于 2010-11-4 23:29:10 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
是不是没有shm就用不了eaccelerator?
日志里提示
eAccelerator: shmmax should be at least 2MB
PHP 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
4#
 楼主| 发表于 2010-11-4 23:34:51 | 只看该作者
这个和配置没啥关系

我看了 官方的faq
I'm using linux 2.6 kernel and eAccelerator doesn't get loaded when the shm_size is set to value bigger than 32mb. Php gives this warning: PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0
The default shared memory size for the 2.6 kernel is 32mb. You can change this size by setting /proc/sys/kernel/shmmax to the disired maximum value. You can do this by echo VAL > /proc/sys/kernel/shmmax or add the line kernel.shmmax=VAL to /etc/sysctl.conf so you don't have to set it manualy every time you reboot.
If you are using VPS solution, make sure the share memory and socket buffers in VPS configuration are sufficient. For OpenVZ or similar type, you can check them by cat /proc/user_beancounter. In normal case all the fail count (failcnt) should be zero. You would need to ask your VPS provider to enlarge the barrier and limit value if you encountered any fail count increase once failed loading eaccelerator.
3#
发表于 2010-11-4 23:30:27 | 只看该作者
请贴出php.ini的配置
2#
发表于 2010-11-4 23:30:14 | 只看该作者
你自已编译的?牛。我在litespeed下面,自已弄过。碰到过一个类似的错误,是因为我没有把缓存目录权限弄好。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-11-9 00:07 , Processed in 0.056743 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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