「php」memcachedをインストールするメモ
1.libmemcachedのダウンロード
ダウンロード:http://libmemcached.org/libMemcached.html
$wget -c https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz
$tar -zxvf libmemcached-1.0.16.tar.gz
$cd libmemcached-1.0.16
$./configure –prefix=/usr/local/libmemcached –with-memcached
$sudo make
$sudo make install
2.memcachedのインストール
ダウンロード:http://pecl.php.net/package/memcached
$wget -c http://pecl.php.net/get/memcached-2.2.0b1.tgz
$tar -zxvf memcached-2.2.0b1.tgz
$cd memcached-2.2.0b1
$sudo /usr/local/php/bin/phpize
$./configure –enable-memcached –with-php-config=/usr/local/php/bin/php-config –with-libmemcached-dir=/usr/local/libmemcached –disabled-memcached-sasl
$sudo make
$sudo make install
3.phpとnginxが再起動
$sudo /etc/init.d/nginx restart
$sudo /etc/init.d/php restart