最近有用户反应,在DZ中不支持高版本的eaccelerator,建议降级到低版本的 0.9.5.3
为方便使用,在这里列出降级的方法
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服务,如
service httpd restart
or
service nginxd restart
或直接使用自动降级脚本,如下
wget http://www.wdlinux.cn/in_scripts/eaccelerator0953
sh eaccelerator0953
/root$ wget
/root$ wget http://www.wdlinux.cn/in_scripts/eaccelerator0953
--2011-05-01 22:22:24-- http://www.wdlinux.cn/in_scripts/eaccelerator0953
Resolving www.wdlinux.cn... failed: Temporary failure in name resolution.
wget: unable to resolve host address `www.wdlinux.cn'
DNS问题
DNS问题
/root$ wget -c
/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编译环境 yum install -y
没有安装GCC编译环境
yum install -y gcc gcc-c++ make autoconf libtool-ltdl-devel
编译的参数不正确,应该为: ./configure
编译的参数不正确,应该为:
./configure --enable-eaccelerator=shared --with-eaccelerator-shared-memory --with-php-config=/www/wdlinux/php/bin/php-config
加上了
加上了