LAMP环境下安装 php-memcache模块
下载memcache
下载包为memcache-2.2.5.tgz
tar zxvf memcache-2.2.5.tgz
cd memcache-2.2.5Installing shared extensions:
/usr/local/php/lib/php/extensions/no-debug-zts-20060613/
//把这个目录写到PHP配置文件中
下载memcache
下载包为memcache-2.2.5.tgz
tar zxvf memcache-2.2.5.tgz
cd memcache-2.2.5
- #/usr/local/php/bin/phpize
- #./configure --with-php-config=/usr/local/php/bin/php-config --enable-memcache --with-apxs=/usr/local/apache/bin/apxs
- //apxs为apache的编译参数
- #make
- # make install
/usr/local/php/lib/php/extensions/no-debug-zts-20060613/
//把这个目录写到PHP配置文件中
- vim /usr/local/php/etc/php.ini
- 把extension_dir = "./"修改为
- extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/" //如上路径
- 并添加 extension = "memcache.so"
编辑回复