CouchBase + PHP 安装与配置

栏目: PHP · Linux · IT技术 · 发布时间: 8年前

内容简介:CouchBase + PHP 安装与配置

CouchBase + PHP 安装与配置

安装 CouchBase

安装方法:

pecl install couchbase

报错:

checking for libcouchbase in default path... not found
configure: error: Please reinstall the libcouchbase distribution -
                 libcouchbase.h should be <libcouchbase-dir>/include and
                 libcouchbase.a should be in <libcouchbase-dir>/lib
ERROR: `/tmp/pear/temp/couchbase/configure --with-php-config=/usr/local/php/bin/php-config' failed

报错解决方法,安装 libcouchbase 扩展依赖

wget -O/etc/yum.repos.d/couchbase.repo http://packages.couchbase.com/rpm/couchbase-centos62-x86_64.repo

yum install -y libcouchbase-devel

安装完依赖扩展后,重新安装 couchbase 即可。

安装 CouchBase php 扩展

pecl search couchbase

重启 php-fpm 服务即可。


以上所述就是小编给大家介绍的《CouchBase + PHP 安装与配置》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Elements of Statistical Learning

The Elements of Statistical Learning

Trevor Hastie、Robert Tibshirani、Jerome Friedman / Springer / 2009-10-1 / GBP 62.99

During the past decade there has been an explosion in computation and information technology. With it have come vast amounts of data in a variety of fields such as medicine, biology, finance, and mark......一起来看看 《The Elements of Statistical Learning》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具

SHA 加密
SHA 加密

SHA 加密工具