Linux下提高性能PHP工具APC
Linux下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
相关推荐
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23