mac php memcached

1、安装memcached

brew install memcached

2、安装libmemcached

brew install libmemcached

3、安装memcached   php扩展

wget http://memcached.org/latest

tar zxvf latest

cd memcached-2.2.0

sudo ./configure --with-php-config=/usr/local/php/bin/php-config --with-libmemcached-dir=/usr/local/Cellar/libmemcached/1.0.18 --enable-memcached

sudo make && make install

你可能感兴趣的:(mac php memcached)