您好,登錄后才能下訂單哦!
tar -zxvf memcache-3.0.8.tgz
cd memcache-3.0.8.tgz
/usr/bin/phpize
./configure --enable-memcache
make && make install
顯示完成:Installing shared extensions: /usr/lib/php/modules/
添加php擴展文件
vim /etc/php.ini
extension=memcache.so
下載https://launchpad.net/libmemcached/+download
下載http://pecl.php.net/package/memcached
tar -zxvf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18.tar.gz
mkdir /usr/local/share/libmemcached
./configure --prefix=/usr/local/share/libmemcached
make && make install
tar -zxvf memcached-2.2.0.tgz
cd memcached-2.2.0.tgz
/usr/bin/phpize
./configure --with-libmemcached-dir=/usr/local/share/libmemcached/
make && make install
添加php擴展文件
vim /etc/php.ini
extension=memcached.so
重啟nginx
service nginx restart 就可以看到memcache擴展模塊了
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。