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:\data\db 配置数据目录
posted @ 2016-02-01 17:51  ChangCrazy  阅读(301)  评论(0编辑  收藏  举报