安裝eAccelerator:
https://github.com/eaccelerator/eaccelerator/
Requirements
apache >= 1.3, mod_php >= 5.1 or php with fastcgi support
autoconf, automake, libtool, m4
Compatibility
eAccelerator works with php version 5.1 and higher.
It is being used on Linux, FreeBSD, Mac OS X, Solaris and Windows
with Apache 1.3 and 2, lighttpd, php-fpm and IIS.
一、解決依賴
# yum install -y autoconf automake libtool m4 --nogpgcheck
二、安裝
# cd eaccelerator-0.9.6.1# /usr/local/php/bin/phpize # ./configure --enable-shared --with-php-config=/usr/local/php/bin/php-config # make #報錯:/usr/src/eaccelerator-0.9.6.1/eaccelerator.c:1938: error: ‘eaccelerator_functions’ undeclared here (not in a function)make: *** [eaccelerator.lo] Error 1
據資料,php5.4已經不支持eAccelerator了,官網上的下載鏈接都失效了,無力吐槽,不過網上貌似還是能找到php5.4可以用的ea:
https://nodeload.github.com/eaccelerator/eaccelerator/legacy.tar.gz/master
我只想說這鏈接跟官網的太似了,不過又不一樣也是醉了
官網鏈接:
http://eaccelerator.net/
下載:
https://github.com/eaccelerator/eaccelerator/legacy.tar.gz/master
找個時間再裝一下