Linux操作系统下提高PHP性能的工具APC
12-09
apc 安装下了最新的APC-3.0.18.tgz,解压,进入目录
apc下载地址 http://pecl.php.net/package/APC
/usr/local/php/bin/phpize (生产configure文件)
./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/bin/php-config
Make make.Install
cp /usr/local/lib/php/extensions/no-debug-zts-20060613/apc.so /usr/local/lib/php/extensions/apc.so
chmod 755 /usr/local/lib/php/extensions/apc.so
配置/etc/php.ini 末尾加入
extension=apc.so
apc.enabled = 1
apc.cache_by_default = on
apc.shm_segments = 1
apc.shm_size = 128
apc.ttl = 7200
apc.user_ttl = 7200
apc.num_files_hint = 1024
apc.write_lock = On
apc.gc_ttl=3600
apc.ttl=0
apc.mmap_file_mask=/tmp/apc.XXXXXX
重启apache
相关文章
- • Red Hat Enterprise Linux AS release 4 apache+MYsql+PHP的安装和优化
- • 优化分区并格式化以提高IO性能
- • Linux下安装php加速软件Xcache的步骤
- • Discuz! X3怎样进行内存优化
- • Linux+Apache+PHP+MySQL+Zend Optimizer+PHPMyAdmin
- • Linux VPS Centos LLNMP环境安装图文教程
- • 巧用linux云服务器下的的/dev/shm/,避开磁盘IO不给力的方法
- • linux系统监控工具
- • Fedora 20 安装试用体验全程讲解