mongodb安装与使用

1.安装

linux:

 git clone https://github.com/mongodb/mongo-php-driver.git
 cd mongo-php-driver
 git submodule sync && git submodule update --init
 phpize
 ./configure  #./configure --with-php-config=/usr/php/bin/php-config
 make all -j 5
 make install

window:

下载安装

http://www.mongodb.org/downloads

运行这个 :mongod.exe --dbpath c:datadb 配置数据目录
原文地址:https://www.cnblogs.com/icyy/p/5175927.html