php加速扩展eAccelerator
eAccelerator是php的一个扩展,可以将php做预编译,加快php的效率
#tar -zxvf ./eaccelerator-0.9.5-beta2.tar.bz2
#cd eaccelerator-0.9.5-beta2
#export PHP_PREFIX="/usr/local" (把PHP安装目录导入到环境变量,默认是/usr/local)
#$PHP_PREFIX/bin/phpize
#./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config
#make
#make install
#make the configure for the php
#edit the file php.ini,add the following lines;
extension="eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/etc/php5/eaccelerator_tmp"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
#make the tmp dir in the previous step
sudo mkdir /etc/php5/eaccelerator_tmp
sudo chmod 777 /etc/php5/eaccelerator_tmp
#restart the apache
sudo service apache2 restart
#check out the eAccelerator; find the section for eAccelerator in the phpinfo page;
相关推荐
深度学习 -- 损失函数
深度残差网络(Deep Residual Networks (ResNets))
深度学习 -- 激活函数
神经网络训练 -- 调整学习速率
生成对抗网络(GAN)改进与发展
生成对抗网络(GAN)优点与缺点
生成对抗网络(GAN)的训练
生成对抗网络(GAN)基本原理
生成模型与判别模型