一、安装注意事项
(1) 只支持 PHP 5.4 以下
(2) 设置环境变量 :echo ‘export LC_ALL=C‘ >> /etc/profile && source /etc/profile
(3) 安装 perl 依赖:yum install -y perl-devel
二、安装 eAccelerator
wget https://github.com/downloads/eaccelerator/eaccelerator/eaccelerator-0.9.6.1.tar.bz2
tar xf eaccelerator-0.9.6.1.tar.bz2
cd eaccelerator-0.9.6.1
/usr/local/php/bin/phpize
./configure --enable-eaccelerator=shared --with-php-config=/usr/local/php/bin/php-config
make && make install
cd ..
rm -rf eaccelerator-0.9.6.1*
ls /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/
时间: 2024-10-13 04:52:02