Home  >  Article  >  Backend Development  >  安装php加速缓存

安装php加速缓存

WBOY
WBOYOriginal
2016-06-20 12:51:11923browse


php缓存加速软件种类

    xcache

    eaccelerator

    Zend

    apc   



eaccelerator具有缓存,加速,优化的特点

设置字符集

echo    'export LC_ALL=C'    >>    /etc/profile

source    /etc/profile

安装perl相关软件

yum    -y    install    perl-devel


安装php    eaccelerator缓存加速模块

1、下载eaccelerator软件包

2、解压

3、进入解压目录

4、执行phpize,一般在php目录下php/bin/phpize

5、编译参数

    ./configure    --enable-eaccelerator=shared    --with-php-config=/usr/local/php/bin/php-config

    make

    make    install

6、查看是否编译成功

    ls    /usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/

    #显示如下,代表编译成功

    eaccelerator.so

    


安装perl相关软件

yum    -y    install    perl-devel


安装php   xcache缓存加速模块

1、下载eaccelerator软件包

2、解压

3、进入解压目录

4、执行phpize,一般在php目录下php/bin/phpize

5、编译参数

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

    make

    make    install

6、查看是否编译成功

    ls    /usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/

    #显示如下,代表编译成功

    xcache.so


数据库Memcahe高性能的分布式的内存对象缓存系统

Memcache分为服务端软件(例如memcached-2.2.5.tar.gz)和客户端软件(memcache-2.2.5.tar.gz)

现在安装客户端(memcache-2.2.5.tar.gz)

1、下载软件

2、解压,进入软件目录

3、执行phppize

4、编译

    ./configure    --with-php-config=/usrl/local/php/bin/php-config

    make

    make install

5、查看是否编译成功

    ls    /usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/

    #显示如下,代表编译成功

    memcache.so


PDO_MYSQL扩展模块为php访问数据库定义了一个轻量级、一致性的接口,他提供了一个数据访问抽象层

1、下载软件包

2、解压,进入软件目录

3、执行phppize

4、编译

    ./configure    --with-php-config=/usr/local/php/bin/php-config    --with-pdo-mysql=/usrl/local/mysql

    make

    make    install

5、查看是否编译成功

    ls    /usrl/local/php/lib/php/extensions/no-debug-non-zts-20090626/

    #显示如下,代表编译成功

    pdo-mysql.so













Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn