VPS侦探论坛

 找回密码
 注册
查看: 8792|回复: 7

军大有没想过把EA的版本降一下?

[复制链接]
发表于 2011-8-11 17:16:28 | 显示全部楼层 |阅读模式

现在的LNMP0.7的EA不支持DZ,感觉不爽。
军大没有想过在下一LNMP版本降低下EA的版本呢?或者针对DZ推出一个特别版?
谢谢。
虽然你给出了解决的EA问题的办法,但还是希望有官方的正式解决方案。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-11 21:32:52 | 显示全部楼层


直接修改脚本中的ea版本,再执行一次就行了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-8-12 09:36:52 | 显示全部楼层

回复 2# 的帖子


那没什么后遗症吧?不稳定啊,和0.7不兼容之类的?


请问https://bbs.vpser.net/viewthread. ... romuid=4650#pid7263中的这个ea的执行执行文件的路径是?或者就根据这个帖子中的链接重新下载该.sh文件?
谢谢。

[ 本帖最后由 351577763 于 2011-8-12 09:44 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-8-12 09:55:53 | 显示全部楼层



嗯,兼容。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2011-8-12 10:18:16 | 显示全部楼层

哦,那修改了eaccelerator.sh文件之后,直接覆盖安装即可?
谢谢。

军哥运维代购:http://shop63846532.taobao.com/

发表于 2011-8-12 11:45:41 | 显示全部楼层

放那都行,修改完,保存,运行。
 楼主| 发表于 2011-8-12 11:46:31 | 显示全部楼层

收到!
晚上就试试,现在没条件。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2011-8-12 21:40:45 | 显示全部楼层

呃,照这个方法做了之后,VPS可以启动,但是网站打不开了。

cat eaccelerator.sh\

如下:

  1. sed -i '/;eaccelerator/ {
  2. r ea.ini
  3. }' /usr/local/php/etc/php.ini

  4. echo "Restarting php-fpm......"
  5. /etc/init.d/php-fpm restart

  6. else
  7. cat >ea.ini<<eof
  8. [eaccelerator]
  9. zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
  10. eaccelerator.shm_size="1"
  11. eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
  12. eaccelerator.enable="1"
  13. eaccelerator.optimizer="1"
  14. eaccelerator.check_mtime="1"
  15. eaccelerator.debug="0"
  16. eaccelerator.filter=""
  17. eaccelerator.shm_max="0"
  18. eaccelerator.shm_ttl="3600"
  19. eaccelerator.shm_prune_period="3600"
  20. eaccelerator.shm_only="0"
  21. eaccelerator.compress="1"
  22. eaccelerator.compress_level="9"
  23. eaccelerator.keys = "disk_only"
  24. eaccelerator.sessions = "disk_only"
  25. eaccelerator.content = "disk_only"

  26. EOF

  27. sed -i '/;eaccelerator/ {
  28. r ea.ini
  29. }' /usr/local/php/etc/php.ini

  30. if [ -s /etc/init.d/httpd ] && [ -s /usr/local/apache ]; then
  31. echo "Restarting Apache......"
  32. /etc/init.d/httpd restart
  33. else
  34. echo "Restarting php-fpm......"
  35. /etc/init.d/php-fpm restart
  36. fi

  37. fi

  38. rm ea.ini
  39. clear
  40. printf "===================== install eaccelerator completed ===================\n"
  41. printf "Install eAccelerator completed,enjoy it!\n"
  42. printf "=======================================================================\n"
  43. printf "Install eAcesselerator for LNMP V0.7  ,  Written by Licess \n"
  44. printf "=======================================================================\n"
  45. printf "LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux \n"
  46. printf "This script is a tool to install eAccelerator for lnmp \n"
  47. printf "\n"
  48. printf "For more information please visit http://www.lnmp.org \n"
  49. printf "=======================================================================\n"
  50. cnc:~/lnmp0.7#
  51. cnc:~/lnmp0.7# clear
  52. cnc:~/lnmp0.7# cat eaccelerator.sh
  53. #!/bin/bash
  54. PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
  55. export PATH

  56. # Check if user is root
  57. if [ $(id -u) != "0" ]; then
  58.     echo "Error: You must be root to run this script, please use root to install lnmp"
  59.     exit 1
  60. fi

  61. clear
  62. printf "=======================================================================\n"
  63. printf "Install eAcesselerator for LNMP V0.7  ,  Written by Licess \n"
  64. printf "=======================================================================\n"
  65. printf "LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux \n"
  66. printf "This script is a tool to install eAccelerator for lnmp \n"
  67. printf "\n"
  68. printf "For more information please visit http://www.lnmp.org \n"
  69. printf "=======================================================================\n"
  70. cur_dir=$(pwd)

  71.         get_char()
  72.         {
  73.         SAVEDSTTY=`stty -g`
  74.         stty -echo
  75.         stty cbreak
  76.         dd if=/dev/tty bs=1 count=1 2> /dev/null
  77.         stty -raw
  78.         stty echo
  79.         stty $SAVEDSTTY
  80.         }
  81.         echo ""
  82.         echo "Press any key to start install eAccelerator..."
  83.         char=`get_char`

  84. printf "=========================== install eaccelerator ======================\n"

  85. if [ -s /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so ]; then
  86. rm -rf /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so
  87. fi
  88. if [ -s /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so ]; then
  89. rm -rf /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so
  90. fi
  91. if [ -s eaccelerator-0.9.6.1 ]; then
  92. rm -rf eaccelerator-0.9.6.1/
  93. fi

  94. wget -c http://soft.vpser.net/web/eaccelerator/eaccelerator-0.9.5.3.tar.bz2
  95. tar jxvf eaccelerator-0.9.5.3.tar.bz2
  96. cd eaccelerator-0.9.5.3/

  97. /usr/local/php/bin/phpize
  98. ./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config --with-eaccelerator-shared-memory
  99. make
  100. make install
  101. cd ../

  102. mkdir -p /usr/local/eaccelerator_cache
  103. sed -ni '1,/;eaccelerator/p;/;ionCube/,$ p' /usr/local/php/etc/php.ini

  104. php_version=`php -r 'echo PHP_VERSION;'`

  105. if [ $php_version = "5.2.14" ] || [ $php_version = "5.2.15" ] || [ $php_version = "5.2.16" ] || [ $php_version = "5.2.17" ]; then
  106. cat >ea.ini<<eof
  107. [eaccelerator]
  108. zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
  109. eaccelerator.shm_size="1"
  110. eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
  111. eaccelerator.enable="1"
  112. eaccelerator.optimizer="1"
  113. eaccelerator.check_mtime="1"
  114. eaccelerator.debug="0"
  115. eaccelerator.filter=""
  116. eaccelerator.shm_max="0"
  117. eaccelerator.shm_ttl="3600"
  118. eaccelerator.shm_prune_period="3600"
  119. eaccelerator.shm_only="0"
  120. eaccelerator.compress="1"
  121. eaccelerator.compress_level="9"
  122. eaccelerator.keys = "disk_only"
  123. eaccelerator.sessions = "disk_only"
  124. eaccelerator.content = "disk_only"

  125. EOF

  126. sed -i '/;eaccelerator/ {
  127. r ea.ini
  128. }' /usr/local/php/etc/php.ini

  129. echo "Restarting php-fpm......"
  130. /etc/init.d/php-fpm restart

  131. else
  132. cat >ea.ini<<eof
  133. [eaccelerator]
  134. zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
  135. eaccelerator.shm_size="1"
  136. eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
  137. eaccelerator.enable="1"
  138. eaccelerator.optimizer="1"
  139. eaccelerator.check_mtime="1"
  140. eaccelerator.debug="0"
  141. eaccelerator.filter=""
  142. eaccelerator.shm_max="0"
  143. eaccelerator.shm_ttl="3600"
  144. eaccelerator.shm_prune_period="3600"
  145. eaccelerator.shm_only="0"
  146. eaccelerator.compress="1"
  147. eaccelerator.compress_level="9"
  148. eaccelerator.keys = "disk_only"
  149. eaccelerator.sessions = "disk_only"
  150. eaccelerator.content = "disk_only"

  151. EOF

  152. sed -i '/;eaccelerator/ {
  153. r ea.ini
  154. }' /usr/local/php/etc/php.ini

  155. if [ -s /etc/init.d/httpd ] && [ -s /usr/local/apache ]; then
  156. echo "Restarting Apache......"
  157. /etc/init.d/httpd restart
  158. else
  159. echo "Restarting php-fpm......"
  160. /etc/init.d/php-fpm restart
  161. fi

  162. fi

  163. rm ea.ini
  164. clear
  165. printf "===================== install eaccelerator completed ===================\n"
  166. printf "Install eAccelerator completed,enjoy it!\n"
  167. printf "=======================================================================\n"
  168. printf "Install eAcesselerator for LNMP V0.7  ,  Written by Licess \n"
  169. printf "=======================================================================\n"
  170. printf "LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux \n"
  171. printf "This script is a tool to install eAccelerator for lnmp \n"
  172. printf "\n"
  173. printf "For more information please visit http://www.lnmp.org \n"
  174. printf "=======================================================================\n"
复制代码
</eof
</eof
</eof

[ 本帖最后由 351577763 于 2011-8-12 21:42 编辑 ]
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-21 02:34 , Processed in 0.028618 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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