1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

PHP7.1编译Memcached

Discussion in '应用交流' started by admin, 2016-12-08.

  1. admin

    admin 管理员 Staff Member

    Joined:
    2011-11-01
    Messages:
    3,671
    Likes Received:
    2,425
    准备安装包
    Code:
    #memcached
    wget http://memcached.org/files/memcached-1.4.33.tar.gz
    
    #memcache for php7
    wget https://github.com/websupport-sk/pecl-memcache/archive/php7.zip
    编译安装memcached
    Code:
    #因为是yum安装的libevent,不必再--with-libevent指定libevent
    ./configure --prefix=/usr/local/memcached
    make && make install
    
    #启动systemctl restart  memcached.service
    php支持memcache的拓展(解压进入目录)
    Code:
    /usr/local/php/bin/phpize
    ./configure --with-php-config=/usr/local/php/bin/php-config
    make && make install
    php.ini中添加
    [memcache]
    extension=memcache.so
    
     
    Last edited: 2016-12-08
    jackton likes this.
Loading...