如何详细讲解在PHP中安装memcache扩展的步骤?
- 内容介绍
- 文章标签
- 相关推荐
本文共计423个文字,预计阅读时间需要2分钟。
PHP 5.6.23,查询当前最稳定的版本是memcache-2.2.7。
1. 下载并解压: wget http://pecl.php.net/get/memcache-2.2.7.tgz tar zxvf memcache-2.2.7.tgz
2. 编译安装: [root@www memcache]
PHP 5.6.23,查询目前最稳定的版本是memcache-2.2.7。
1.下载并解压缩。
wget pecl.php.net/get/memcache-2.2.7.tgz
tar zxvf memcache-2.2.7.tgz
2.编译。根据实际情况使用phpize和php-config。
[root@www memcache-2.2.7]# /usr/local/php/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226
[root@www memcache-2.2.7]# ./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config
3.安装。
本文共计423个文字,预计阅读时间需要2分钟。
PHP 5.6.23,查询当前最稳定的版本是memcache-2.2.7。
1. 下载并解压: wget http://pecl.php.net/get/memcache-2.2.7.tgz tar zxvf memcache-2.2.7.tgz
2. 编译安装: [root@www memcache]
PHP 5.6.23,查询目前最稳定的版本是memcache-2.2.7。
1.下载并解压缩。
wget pecl.php.net/get/memcache-2.2.7.tgz
tar zxvf memcache-2.2.7.tgz
2.编译。根据实际情况使用phpize和php-config。
[root@www memcache-2.2.7]# /usr/local/php/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226
[root@www memcache-2.2.7]# ./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config
3.安装。

