©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
此 » PECL 扩展未与 PHP 捆绑。 安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 维护人员信息及变更日志等,都在此处: » http://pecl.php.net/package/memcache.
Note:
可以关闭memcache session处理器的支持。使用pecl install进行安装时,在静态编译到php中时使用选项 --disable-memcache-session 可以关闭memcache的session 支持(默认时开启的)。
[#1] andryzeus at ukr dot net [2012-01-06 02:10:45]
If you have error with libtool version after make - way to install:
phpize --clean && phpize
rm aclocal.m4
aclocal
autoconf
./configure
make
make install
[memcache-2.2.6, gentoo.x86-64]
[#2] Felipe Estrella Barros [2011-10-16 15:54:55]
On Slackware, after copilling it, you should copy the file /module/memcache.so to /usr/lib/httpd/modules. Then, the instruction extension=memcache.so must be added into the file /etc/httpd/php.ini
Restart the httpd and it should work!
[#3] pesdguy at yahoo dot co dot in [2010-05-10 02:46:34]
For xampp if you need to install memcache
use this place for all version
:
http://downloads.php.net/pierre/
[#4] mit at mitayai dot org [2010-04-19 12:47:59]
It is very important to note when reading the information supplied by others on this page that there are two *distinct* memcache PHP implementations for the service "memcached".
1) pecl-memcache
2) pecl-memcached
This page is for the first, pecl-memcache.
If you are looking for pecl-memcached information, visit here:
http://www.php.net/manual/en/book.memcached.php
[#5] no at spam4me dot com [2009-12-11 03:48:07]
#if apt-get, rpm, or yum doesn't work
cd /usr/src/
wget http://pecl.php.net/get/memcache-2.2.4.tgz
tar -zxvf memcached-2.2.4.tgz
cd memcached-2.2.4
phpize && ./configure --enable-memcache && make
cp modules/memcache.so /usr/lib/php/modules/
# Note: packaged extension modules are now loaded via the .ini files
# found in the directory /etc/php.d
touch /etc/php.d/memcached.ini
echo 'extension=memcache.so' > /etc/php.d/memcached.ini
service httpd restart
[#6] mykel dot alvis at gmail dot com [2008-06-18 08:01:17]
on Fedora, apparently
yum install php-pecl-memcache
[#7] Wayne [2008-05-01 12:09:43]
Newer PHP versions don't have a --enable-memcache options; simply installing the PECL package will be enough... so to be absolutely clear, you WON'T have to recompile PHP to use memcache. That paragraph above seems like a bad case of earlier version documentation editing.