无限星辰工作室-客户无限互联网动力之源

标题: Discuz! 兼容eaccelerator应用方案之一 [打印本页]

作者: crx349    时间: 2014-9-19 20:22
标题: Discuz! 兼容eaccelerator应用方案之一
下载
  1. wget http://www.xmspace.net/soft/eaccelerator-0.9.6.1.tar.bz2


  2. tar -vxjf eaccelerator-0.9.6.1.tar.bz2


  3. cd eaccelerator-0.9.6.1


  4. vi eaccelerator.c
复制代码


  1. } else if (strncasecmp(buf, "beta", 4) == 0) {           a = 3;          sscanf(buf, "beta%u", &b);  }  
复制代码

下面添加


  1. } else if (buf, "p1%u", &b) {         a = 0;         b = 0;   }  
复制代码
  1. /usr/local/php/bin/phpize
  2. ./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config
  3. make && make install
复制代码


Installing shared extensions:     /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/


  1. extension_dir = "/usr/local/php/lib"

  2. extension="eaccelerator.so"
  3. eaccelerator.shm_size="32"      ;..eaccelerator......32MB
  4. eaccelerator.cache_dir="/usr/local/php/eaccelerator"
  5. eaccelerator.enable="1"
  6. eaccelerator.optimizer="1"
  7. eaccelerator.check_mtime="1"
  8. eaccelerator.debug="0"
  9. eaccelerator.filter="*.php"
  10. eaccelerator.shm_max="0"
  11. eaccelerator.shm_ttl="0"
  12. eaccelerator.shm_prune_period="3600"
  13. eaccelerator.shm_only="0"
  14. eaccelerator.compress="1"
  15. eaccelerator.compress_level="9"
  16. eaccelerator.log_file = "/usr/local/apache2/logs/eaccelerator_log"
  17. eaccelerator.allowed_admin_path = "/usr/local/apache2/htdocs/ea_admin"





  18. [eaccelerator]
  19. ;zend_extension="/usr/local/php_fcgi/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"

  20. extension_dir="/usr/local/php_fcgi/lib/php/extensions/no-debug-non-zts-20060613/"
  21. extension = "eaccelerator.so"
  22. eaccelerator.shm_size="32"
  23. eaccelerator.cache_dir="/tmp"
  24. eaccelerator.enable="1"
  25. eaccelerator.optimizer="1"
  26. eaccelerator.check_mtime="1"
  27. eaccelerator.debug="0"
  28. eaccelerator.filter=""
  29. eaccelerator.shm_max="0"
  30. eaccelerator.shm_ttl="0"
  31. eaccelerator.shm_prune_period="0"
  32. eaccelerator.shm_only="0"
  33. eaccelerator.compress="1"
  34. eaccelerator.compress_level="9"
复制代码





欢迎光临 无限星辰工作室-客户无限互联网动力之源 (https://xmspace.net/) Powered by Discuz! X3.4