Skip to content

Instantly share code, notes, and snippets.

@jingmian
Last active July 11, 2018 05:15
Show Gist options
  • Select an option

  • Save jingmian/1053e1183637d3888f4b4694ba5d2759 to your computer and use it in GitHub Desktop.

Select an option

Save jingmian/1053e1183637d3888f4b4694ba5d2759 to your computer and use it in GitHub Desktop.
phpmemcached扩展编译安装
memcached 是服务器
因为是服务器,只需要安装memcached应用就可以了,具体安装下面有介绍,
libmemcached 是客户端
客户端需安装libmemcached库,php的扩展memcached,因为该扩展是依赖libmemcached的API
PHP7必须使用这个版本
https://github.com/php-memcached-dev/php-memcached/archive/php7.zip #这个可以指定libmemcached路径
https://github.com/websupport-sk/pecl-memcache/archive/php7.zip #这个不可以指定libmemcached路径
cd xxxx刚刚下载的版本包
/usr/local/php7.1.18/bin/phpize
./configure --with-php-config=/usr/local/php7.1.18/bin/php-config \
--with-libmemcached-dir=/usr/local/libmemcached
make && make install
### --disable-memcached-sasl 说明我们系统不支持sasl.h
https://www.cnblogs.com/hanpengyu/p/7825887.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment