xcache 安装备忘

来源:互联网 发布:移动网络维修电话 编辑:程序博客网 时间:2024/06/11 07:04
xcache-2.0.0-rc1]# /usr/local/bin/phpize


./configure --with-php-config=/usr/local/bin/php-config --enable-xcache-optimizer --enable-xcache --enable-xcache-encoder --enable-xcache-decoder


xcache-2.0.0-rc1]# make install
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20090626/


vi php.ini

extension="xcache.so"

[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =               16M
xcache.count =                 1
xcache.slots =                8K
xcache.ttl   =                 0
xcache.gc_interval =           0
xcache.var_size  =            4M
xcache.var_count =             1
xcache.var_slots =            8K
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300
xcache.readonly_protection = Off
xcache.mmap_path =    "/dev/zero"
xcache.coredump_directory =   "/tmp/phpcore/"
xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =           Off
xcache.test =                Off
xcache.experimental =        Off
[xcache.coverager]
xcache.coverager =          Off
xcache.coveragedump_directory = ""


mkdir /tmp/phpcore/
chmod 0777 /tmp/phpcore/


service apache restar



原创粉丝点击