容器技术交流

 找回密码
 立即注册
查看: 4820|回复: 1

服务器如何重装eaccelerator,支持shared-memory ???

[复制链接]
发表于 2010-3-29 17:27:08 | 显示全部楼层 |阅读模式
是用famp安装的服务器,新版的discuzx安装完成,但是不能正常访问,出现下列错误
Fatal error: Call to undefined function eaccelerator_get() in /home/heshanfu/sungz_com/source/class/class_eaccelerator.php on line 22

下面是官方的解答
【方法2】 完全开启服务器对于 eaccelerator 的支持(需要站长有一定的技术实力)
清理以前的安装记录;
在安装脚本配置的选项中加入  --with-eaccelerator-shared-memory  重新编译;
重新编译后,你的论坛就可以开启 eaccelerator 极速支持了

尝试了一下,编辑了eaccelerator_nginx.sh 这个文件,加入 --with-eaccelerator-shared-memory  这段,重新编译完成,但是服务器却挂了。
还原eaccelerator_nginx.sh这个文件,重新编译,服务器依然还是挂的。
请问正确的操作方法应该是怎样的???
发表于 2010-3-29 22:47:22 | 显示全部楼层
  1. #!/bin/sh

  2. . "common.sh"

  3. cd ../soft

  4. tar -jxvf eaccelerator-0.9.5.3.tar.bz2
  5. cd eaccelerator-0.9.5.3

  6. make clean
  7. $famp_root/php/bin/phpize
  8. ./configure --enable-eaccelerator=shared --with-eaccelerator-shared-memory --with-php-config=$famp_root/php/bin/php-config
  9. make
  10. make install clean

  11. cd ..
  12. rm -rf eaccelerator-0.9.5.3
  13. cd ../code
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-5-11 10:09 , Processed in 0.033492 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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