apc 安裝下了最新的APC-3.0.19.tgz,解壓,進入目錄
apc下載地址
http://pecl.PHP.Net/package/APC# tar -zxvf APC-3.0.19.tgz
# cd APC-3.0.19
# /usr/local/php/bin/PHPize (生產configure文件)
# ./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php5/lib/php/PHP-config
# make
# makeInstall
# cp /usr/local/lib/php/extensions/no-debug-zts-20060613/apc.so /usr/local/php5/lib/PHP/extensions/apc.so
# chmod 755 /usr/local/php5/lib/PHP/extensions/apc.so
修改 PHP.ini下
extension_dir = "./"
extension_dir = "/usr/local/php5/lib/PHP/extensions"
配置/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
[收藏][評論][報錯][打印][關閉]