Centos6.2下php-5.2.17安裝配置XCache3加速器
wget http://xcache.lighttpd.net/pub/Releases/3.0.0/xcache-3.0.0.tar.gz
tar zxvf xcache-3.0.0.tar.gz
cd xcache-3.0.0
/usr/local/php-5.2.17/bin/phpize
./configure -with-php-config=/usr/local/php-5.2.17/bin/php-config -enable-xcache -enable-xcache-coverager -enable-inline-optimization -disable-debug
make
make install
vi /usr/local/php-5.2.17/etc/php.ini
在檔案末尾新增:
extension = “xcache.so” #你的安裝路徑
xcache.admin.auth = On
xcache.admin.user = “xcache”
xcache.admin.pass = “5f4dcc3b5aa765d61d8327deb882cf99” #password is password
xcache.size = 32M
xcache.shm_scheme = “mmap”
xcache.count = 4
xcache.slots = 8K
xcache.ttl = 0
xcache.gc_interval = 0
xcache.var_size = 16M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300
xcache.test = Off
xcache.readonly_protection = Off
xcache.mmap_path = “/dev/zero”
xcache.coredump_directory = “”
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off
[xcache.coverager]
xcache.coverager = On
xcache.coveragedump_directory = “”
拷貝htdocs到WWW目錄
cp -R htdocs /data/www/wwwroot
cd /data/www/wwwroot/htdocs
cp config.example.php config.php
在檔案末尾新增:
$_SERVER[“PHP_AUTH_USER”] = “xcache”;
$_SERVER[“PHP_AUTH_PW”] = “password”;
開啟瀏覽器訪問http://10.0.0.17/htdocs,輸入帳號xcache 密碼password 進入
本文轉自 ppabc 51CTO部落格,原文連結:http://blog.51cto.com/ppabc/1051971
相關文章
- (1)docker安裝下載並配置加速器Docker
- Centos6.2中mysql的安裝與配置CentOSMySql
- Win7下硬碟安裝centos6.2Win7硬碟CentOS
- KVM 虛擬機器安裝配置在CentOS6.2虛擬機CentOS
- centos6.2安裝jdk7CentOSJDK
- CentOS下安裝配置cmakeCentOS
- mac下安裝配置nginxMacNginx
- ubuntu下cacti安裝配置Ubuntu
- Linux下安裝java及配置(yum安裝)LinuxJava
- RHEL5.4 安裝nginx-1.0 + php-5.2.17(fastcgi)+mysql-5.1.40薦NginxPHPASTMySql
- windows下Tomcat安裝配置WindowsTomcat
- Linux下ODBC安裝配置Linux
- CentOS下tomcat安裝配置CentOSTomcat
- CentOS下tftp 安裝配置使用CentOSFTP
- windows下安裝cygwin及配置Windows
- Linux下ejabberd安裝配置Linux
- Linux下安裝配置RedisLinuxRedis
- linux下安裝配置svnLinux
- maven下載、安裝與配置Maven
- Maven的下載安裝配置Maven
- Linux系統CentOS6.2版本下安裝JDK7詳細過程LinuxCentOSJDK
- centos6.2安裝virtualbox建立xp的時候出錯CentOS
- CodeMan快速安裝配置教程:Windows下安裝配置Java JDK環境WindowsJavaJDK
- Windows下Scoop安裝、配置與使用WindowsOOP
- Linux下rsync安裝與配置Linux
- Python 下載安裝和配置Python
- centos7下cobbler安裝配置CentOS
- Docker 下安裝配置 lnmp 環境DockerLNMP
- nodejs下載、安裝和配置NodeJS
- CentOS 8.2下VNC安裝與配置CentOSVNC
- pycharm下載安裝與基本配置PyCharm
- Ubuntu 16.04 下安裝配置caffeUbuntu
- Mac環境下安裝配置RedisMacRedis
- windows下配置安裝YAF環境Windows
- windows下mangodb的安裝及配置WindowsGo
- Linux下Redis的安裝配置LinuxRedis
- centos6.5下安裝配置hudsonCentOS
- Linux下ftp的安裝配置LinuxFTP