最近有用戶反應(yīng),在DZ中不支持高版本的eaccelerator,建議降級(jí)到低版本的 0.9.5.3
為方便使用,在這里列出降級(jí)的方法
wget -c http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
tar jxvf eaccelerator-0.9.5.3.tar.bz2
cd eaccelerator-0.9.5.3
./configure --enable-eaccelerator=shared --with-eaccelerator-shared-memory --with-php-config=/www/wdlinux/php/bin/php-config
make
make install
重起web服務(wù),如
service httpd restart
or
service nginxd restart
或直接使用自動(dòng)降級(jí)腳本,如下
wget http://www.fsowen.com/in_scripts/eaccelerator0953
sh eaccelerator0953
/root$ wget -c http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
--2011-05-01 22:20:09-- http://bart.eaccelerator.net/source/0.9.5.3/eaccelerator-0.9.5.3.tar.bz2
Resolving bart.eaccelerator.net... failed: Temporary failure in name resolution.
wget: unable to resolve host address `bart.eaccelerator.net'
方法2的
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
make: *** No rule to make target `/home/bart/development/eaccelerator/branches/0.9.5/eaccelerator.c', needed by `eaccelerator.lo'. Stop.
make: *** No rule to make target `/home/bart/development/eaccelerator/branches/0.9.5/eaccelerator.c', needed by `eaccelerator.lo'. Stop.
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
方法1的
[root@MyVPS1099 eaccelerator-0.9.5.3]# ./configure --enable-eaccelerator=shared --with-eaccelerator-shared-memory --with-phpconfig=/www/wdlinux/php/bin/phpp-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
沒有安裝GCC編譯環(huán)境
yum install -y gcc gcc-c++ make autoconf libtool-ltdl-devel
編譯的參數(shù)不正確,應(yīng)該為:
./configure --enable-eaccelerator=shared --with-eaccelerator-shared-memory --with-php-config=/www/wdlinux/php/bin/php-config
/root$ wget
/root$ wget http://www.fsowen.com/in_scripts/eaccelerator0953
--2011-05-01 22:22:24-- http://www.fsowen.com/in_scripts/eaccelerator0953
Resolving www.fsowen.com... failed: Temporary failure in name resolution.
wget: unable to resolve host address `www.fsowen.com'