美文网首页
linux memCache 安装

linux memCache 安装

作者: 进击的PHPer | 来源:发表于2019-04-16 16:38 被阅读0次

建议安装 http://www.runoob.com/memcached/memcached-install.html

wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz -c -O libevent-2.1.8-stable.tar.gz

tar -zxvf libevent-2.1.8-stable.tar.gz

cd    libevent-2.1.8-stable

./configure --prefix=/usr/local/libevent

make && make install

wget http://www.memcached.org/files/memcached-1.5.13.tar.gz

tar -zxvf memcached-1.5.13.tar.gz

cd memcached-1.5.13

./configure --prefix=/usr/local/memcached --with-libevent=/usr/local/libevent

make && make install

https://pecl.php.net/get/memcached-3.1.2.tgz

tar -zxvf memcached-3.1.2.tgz

cd memcached-3.1.2

/usr/local/php/bin/phpize

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

make && make install

vi php.ini 添加 extension=memcached.so

php -m

phpinfo()

相关文章

网友评论

      本文标题:linux memCache 安装

      本文链接:https://www.haomeiwen.com/subject/mqabwqtx.html