要在php下安装ssdb扩展很easy,只要在github上的ssdb下载,按说明安装即可。
注意,要是php7的版本,要切换分支哦。

  1. git clone https://github.com/jonnywang/phpssdb.git
  2. cd phpssdb

用这个git branch -a看下有没有php7版本,应该是有的

  1. git checkout php7

git branch查看,切换版本成功,接下来:

  1. phpize
  2. ./configure [--with-php-config=YOUR_PHP_CONFIG_PATH] [--enable-ssdb-igbinary]
  3. make
  4. make install

大功告成。
注: 用yum安装的php扩展放在这里 /usr/lib64/php/modules/
还要加/etc/php.d/ssdb.ini

分类: web

标签:   ssdb