探索,發現,愛好、學習,記錄,分享。
學海無涯,天涯若比鄰,三人行,必有我師。

DirectAdmin安装XCache

cd /usr/local/src/
wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz
tar -zxvf xcache-3.2.0.tar.gz
cd xcache-3.2.0
export PHP_PREFIX=”/usr/local”
$PHP_PREFIX/bin/phpize
./configure –enable-xcache -with-php-config=$PHP_PREFIX/php5/bin/php-config
make && make install

cd /usr/local/src/
 wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz
 tar -zxvf xcache-3.2.0.tar.gz
 cd xcache-3.2.0
 export PHP_PREFIX=”/usr/local”
 $PHP_PREFIX/bin/phpize
 ./configure –enable-xcache -with-php-config=$PHP_PREFIX/bin/php-config
 make && make install

tar xf xcache-3.1.2.tar.gz
 cd xcache-3.2.0
 phpize
 ./configure –enable-xcache –with-php-config=/usr/bin/php-config
 make && make install
 cp xcache.ini /etc/php.d/xcache.ini
 vim /etc/php.d/xcache.ini
 extension = /usr/lib/php/modules/xcache.so


 /usr/local/lib/php/extensions/no-debug-non-zts-20100525/

; Local Variables:
 ; tab-width: 4
 ; End:

[xcache-common]
 extension_dir = “/usr/local/lib/php/extensions/no-debug-non-zts-20100525/”
 extension = xcache.so
 [xcache.admin]
xcache.admin.user = “admin”
 xcache.admin.pass = “e10adc3949ba59abbe56e057f20f883e”
 ; xcache.admin.pass = md5($your_password)
 xcache.admin.enable_auth = On
 [xcache]
 xcache.cacher =               On
 xcache.size  =               64M
 xcache.count =                 1
 xcache.slots =                8K
 xcache.ttl   =              3600
 xcache.gc_interval =         300
 xcache.var_size  =            0M
 xcache.var_count =             1
 xcache.var_slots =            8K
 xcache.var_ttl   =             0
 xcache.var_maxttl   =          0
 xcache.var_gc_interval =  %

版權聲明:本文采用知識共享 署名4.0國際許可協議 [BY-NC-SA] 進行授權
轉載事宜:如需轉載需徵得應允,轉載必須注明來源於本站的信息。
文章名称:《DirectAdmin安装XCache》
文章链接:https://www.thefreesky.com/blog/16932.html
本站資源僅供個人學習交流,請於下載後24小時內刪除,不允許用於商業用途,否則法律問題自行承擔。