最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
windows中mongoDB安装教程
时间:2013-03-21 编辑:简简单单 来源:一聚教程网
下载路径:http://downloads.mongodb.org/win32/mongodb-win32-i386-1.7.0.zip
将一个DB文件夹 我是放到D盘,路径:Ddb
解压mongodb-win32-i386-1.7.0.zip 将其重命名为mongodb 放到D盘
打开cmd输入:D:mongodbbinmongod.exe –dbpath=d:db 启动mongod服务
再打开一个cmd输入:D:mongodbbin>mongo.exe
代码如下 | 复制代码 |
MongoDB shell version: 1.7.0 url: test connecting to: test type “exit” to exit type “help” for help > 5.D:mongodbbinmongod.exe -dbpath d:DB -install 注册windows service,哈哈 免得以后麻烦,每回要启动 6. D:mongodbbin>mongo.exe MongoDB shell version: 1.7.0 url: test connecting to: test type “exit” to exit type “help” for help > use test switched to db test > db.foo.save({hello:1,word:2}) > db.foo.find() { “_id” : ObjectId(“4bc1854e0140000000006f05″), “hello” : 1, “word” : 2 } |
7.到http://cn.php.net/manual/en/mongo.installation.php#mongo.installation.nix.里下载 相应版本dll文件
如:http://downloads.mongodb.org/mongo-latest-php5.2vc6ts.zip
8.将php_mongo.dll复制到php安装目录下的etc下目录下
9.重启apache或nginx
10.查看phpinfo
mongo
代码如下 | 复制代码 |
MongoDB Support enabled Version 1.0.7 |
-
上一个: html5中文本框输入内容提示消失
相关文章
- GPT分区安装Win7系统失败怎么办 07-05
- win10ttf字体安装无效怎么办 ttf字体无效解决办法 06-01
- windows10政府版怎么使用 windows10政府版下载安装教程 05-24
- 安装MeeGo和Win7双系统方法 04-18
- Windows Server 2016安装方法 04-05
- win10环境下python3.5安装步骤图文教程 03-13