军大有没想过把EA的版本降一下?
现在的LNMP0.7的EA不支持DZ,感觉不爽。军大没有想过在下一LNMP版本降低下EA的版本呢?或者针对DZ推出一个特别版?
谢谢。
虽然你给出了解决的EA问题的办法,但还是希望有官方的正式解决方案。 直接修改脚本中的ea版本,再执行一次就行了
回复 2# 的帖子
那没什么后遗症吧?不稳定啊,和0.7不兼容之类的?请问https://bbs.vpser.net/viewthread. ... romuid=4650#pid7263中的这个ea的执行执行文件的路径是?或者就根据这个帖子中的链接重新下载该.sh文件?
谢谢。
[ 本帖最后由 351577763 于 2011-8-12 09:44 编辑 ] 嗯,兼容。 哦,那修改了eaccelerator.sh文件之后,直接覆盖安装即可?
谢谢。 放那都行,修改完,保存,运行。 收到!
晚上就试试,现在没条件。 呃,照这个方法做了之后,VPS可以启动,但是网站打不开了。
cat eaccelerator.sh\
如下:
sed -i '/;eaccelerator/ {
r ea.ini
}' /usr/local/php/etc/php.ini
echo "Restarting php-fpm......"
/etc/init.d/php-fpm restart
else
cat >ea.ini<<eof
zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
eaccelerator.shm_size="1"
eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "disk_only"
eaccelerator.sessions = "disk_only"
eaccelerator.content = "disk_only"
EOF
sed -i '/;eaccelerator/ {
r ea.ini
}' /usr/local/php/etc/php.ini
if [ -s /etc/init.d/httpd ] && [ -s /usr/local/apache ]; then
echo "Restarting Apache......"
/etc/init.d/httpd restart
else
echo "Restarting php-fpm......"
/etc/init.d/php-fpm restart
fi
fi
rm ea.ini
clear
printf "===================== install eaccelerator completed ===================\n"
printf "Install eAccelerator completed,enjoy it!\n"
printf "=======================================================================\n"
printf "Install eAcesselerator for LNMP V0.7,Written by Licess \n"
printf "=======================================================================\n"
printf "LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux \n"
printf "This script is a tool to install eAccelerator for lnmp \n"
printf "\n"
printf "For more information please visit http://www.lnmp.org \n"
printf "=======================================================================\n"
cnc:~/lnmp0.7#
cnc:~/lnmp0.7# clear
cnc:~/lnmp0.7# cat eaccelerator.sh
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, please use root to install lnmp"
exit 1
fi
clear
printf "=======================================================================\n"
printf "Install eAcesselerator for LNMP V0.7,Written by Licess \n"
printf "=======================================================================\n"
printf "LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux \n"
printf "This script is a tool to install eAccelerator for lnmp \n"
printf "\n"
printf "For more information please visit http://www.lnmp.org \n"
printf "=======================================================================\n"
cur_dir=$(pwd)
get_char()
{
SAVEDSTTY=`stty -g`
stty -echo
stty cbreak
dd if=/dev/tty bs=1 count=1 2> /dev/null
stty -raw
stty echo
stty $SAVEDSTTY
}
echo ""
echo "Press any key to start install eAccelerator..."
char=`get_char`
printf "=========================== install eaccelerator ======================\n"
if [ -s /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so ]; then
rm -rf /usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so
fi
if [ -s /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so ]; then
rm -rf /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so
fi
if [ -s eaccelerator-0.9.6.1 ]; then
rm -rf eaccelerator-0.9.6.1/
fi
wget -c http://soft.vpser.net/web/eaccelerator/eaccelerator-0.9.5.3.tar.bz2
tar jxvf eaccelerator-0.9.5.3.tar.bz2
cd eaccelerator-0.9.5.3/
/usr/local/php/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config --with-eaccelerator-shared-memory
make
make install
cd ../
mkdir -p /usr/local/eaccelerator_cache
sed -ni '1,/;eaccelerator/p;/;ionCube/,$ p' /usr/local/php/etc/php.ini
php_version=`php -r 'echo PHP_VERSION;'`
if [ $php_version = "5.2.14" ] || [ $php_version = "5.2.15" ] || [ $php_version = "5.2.16" ] || [ $php_version = "5.2.17" ]; then
cat >ea.ini<<eof
zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
eaccelerator.shm_size="1"
eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "disk_only"
eaccelerator.sessions = "disk_only"
eaccelerator.content = "disk_only"
EOF
sed -i '/;eaccelerator/ {
r ea.ini
}' /usr/local/php/etc/php.ini
echo "Restarting php-fpm......"
/etc/init.d/php-fpm restart
else
cat >ea.ini<<eof
zend_extension="/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
eaccelerator.shm_size="1"
eaccelerator.cache_dir="/usr/local/eaccelerator_cache"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="3600"
eaccelerator.shm_prune_period="3600"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
eaccelerator.keys = "disk_only"
eaccelerator.sessions = "disk_only"
eaccelerator.content = "disk_only"
EOF
sed -i '/;eaccelerator/ {
r ea.ini
}' /usr/local/php/etc/php.ini
if [ -s /etc/init.d/httpd ] && [ -s /usr/local/apache ]; then
echo "Restarting Apache......"
/etc/init.d/httpd restart
else
echo "Restarting php-fpm......"
/etc/init.d/php-fpm restart
fi
fi
rm ea.ini
clear
printf "===================== install eaccelerator completed ===================\n"
printf "Install eAccelerator completed,enjoy it!\n"
printf "=======================================================================\n"
printf "Install eAcesselerator for LNMP V0.7,Written by Licess \n"
printf "=======================================================================\n"
printf "LNMP is a tool to auto-compile & install Nginx+MySQL+PHP on Linux \n"
printf "This script is a tool to install eAccelerator for lnmp \n"
printf "\n"
printf "For more information please visit http://www.lnmp.org \n"
printf "=======================================================================\n"</eof
</eof
</eof
[ 本帖最后由 351577763 于 2011-8-12 21:42 编辑 ]
页:
[1]