mongodb windows install

本文涉及的产品
云数据库 MongoDB,独享型 2核8GB
推荐场景:
构建全方位客户视图
简介: mongodb windows install   下载  mongodb-win32-x86_64-2008plus-ssl-3.4.5-signed.msi   1.安装install    本人安装位置 D:\soft\MongoDB   2.

mongodb windows install

 

下载  mongodb-win32-x86_64-2008plus-ssl-3.4.5-signed.msi

 

1.安装install 



 

本人安装位置 D:\soft\MongoDB



 

2. install 命令

 

mongod.exe --logpath D:\soft\MongoDB\data\log\mongodb.log --logappend --dbpath D:\soft\MongoDB\data\db --directoryperdb --serviceName MongoDB -install

 

 

出现 就算成功了

2018-03-21T14:27:57.734+0800 I CONTROL  [main] Trying to install Windows service 'MongoDB'
2018-03-21T14:27:57.736+0800 I CONTROL  [main] Error connecting to the Service Control Manager: 拒绝访问。 (5)
2018-03-21T14:32:29.834+0800 I CONTROL  [main] ***** SERVER RESTARTED *****
2018-03-21T14:32:30.336+0800 I CONTROL  [main] Trying to install Windows service 'MongoDB'
2018-03-21T14:32:30.560+0800 I CONTROL  [main] Service 'MongoDB' (MongoDB) installed with command line 'D:\soft\MongoDB\Server\3.4\bin\mongod.exe --logpath D:\soft\MongoDB\data\log\mongodb.log --logappend --dbpath D:\soft\MongoDB\data\db --directoryperdb --service'
2018-03-21T14:32:30.560+0800 I CONTROL  [main] Service can be started from the command line with 'net start MongoDB'

 

出现 以下错误是权限问题,在系统  C:\Windows\System32 下右击 cmd.exe 以管理员身份启动

 

 2017-07-07T17:01:55.339+0800 I CONTROL  [main] Error connecting to the Service Control Manager: 拒绝访问。 (5)

在执行intall 命令

 

 

3.启动 

 

net start MongoDB
net stop MongoDB

 



 

 

4.进入客户端



 

 

5.test

> db.runoob.insert({x:10})
WriteResult({ "nInserted" : 1 })

 



 

 

6.使用 Robomongo 0.9.0 可视化 工具查看



 

 

 

 

 

 

 

 

 

 

 

 

 

 

捐助开发者 

在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信 以及扣扣群),没钱捧个人场,谢谢各位。

 

个人主页http://knight-black-bob.iteye.com/



 
 
 谢谢您的赞助,我会做的更好!

 

目录
相关文章
|
5月前
|
NoSQL IDE MongoDB
Studio 3T 2025.11 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.11 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
331 3
|
2月前
|
NoSQL IDE MongoDB
Studio 3T 2025.17 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.17 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
231 1
Studio 3T 2025.17 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
5月前
|
NoSQL IDE MongoDB
Studio 3T 2025.10 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.10 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
402 21
Studio 3T 2025.10 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
8月前
|
NoSQL IDE MongoDB
Studio 3T 2025.5 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.5 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
307 2
Studio 3T 2025.5 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
8月前
|
NoSQL IDE MongoDB
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
309 0
Studio 3T 2025.4 (macOS, Linux, Windows) - MongoDB 的终极 GUI、IDE 和 客户端
|
存储 NoSQL MongoDB
MongoDB入门级别教程全(Windows版,保姆级教程)
一份全面的MongoDB入门级教程,包括在Windows系统上安装MongoDB、使用MongoDB Shell和Compass GUI进行数据库操作,以及MongoDB的基本数据类型和查询技巧。
2791 2
MongoDB入门级别教程全(Windows版,保姆级教程)
|
NoSQL Shell MongoDB
Windows 平台安装 MongoDB
10月更文挑战第10天
371 0
Windows 平台安装 MongoDB
|
4月前
|
NoSQL MongoDB 数据库
数据库数据恢复—MongoDB数据库数据恢复案例
MongoDB数据库数据恢复环境: 一台操作系统为Windows Server的虚拟机上部署MongoDB数据库。 MongoDB数据库故障: 工作人员在MongoDB服务仍然开启的情况下将MongoDB数据库文件拷贝到其他分区,数据复制完成后将MongoDB数据库原先所在的分区进行了格式化操作。 结果发现拷贝过去的数据无法使用。管理员又将数据拷贝回原始分区,MongoDB服务仍然无法使用,报错“Windows无法启动MongoDB服务(位于 本地计算机 上)错误1067:进程意外终止。”
|
4月前
|
缓存 NoSQL Linux
在CentOS 7系统中彻底移除MongoDB数据库的步骤
以上步骤完成后,MongoDB应该会从您的CentOS 7系统中被彻底移除。在执行上述操作前,请确保已经备份好所有重要数据以防丢失。这些步骤操作需要一些基本的Linux系统管理知识,若您对某一步骤不是非常清楚,请先进行必要的学习或咨询专业人士。在执行系统级操作时,推荐在实施前创建系统快照或备份,以便在出现问题时能够恢复到原先的状态。
387 79
|
4月前
|
存储 NoSQL MongoDB
MongoDB数据库详解-针对大型分布式项目采用的原因以及基础原理和发展-卓伊凡|贝贝|莉莉
MongoDB数据库详解-针对大型分布式项目采用的原因以及基础原理和发展-卓伊凡|贝贝|莉莉
245 8
MongoDB数据库详解-针对大型分布式项目采用的原因以及基础原理和发展-卓伊凡|贝贝|莉莉

推荐镜像

更多