当前位置:网站首页>关于MongoDB报错:connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
关于MongoDB报错:connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
2022-06-29 12:47:00 【Dried persimmon aint】
MongoDB安装完成,但是在输入启动命令时,报出以下错误
解决方案
1.在其他磁盘下新建一个data目录,里边新建一个db文件夹

2.在MongoDB的bin目录下输入mongod.exe --dbpath D:\data\db(这里是在修改默认的数据存储目录)
其中 D:\data\db 代表的是你需要存放的位置,所以需要事先进行创建该文件夹

3.之后这个DOS窗口不要关闭,重新打开一个DOS窗口,也是在MongoDB的bin目录下,输入mongo启动
边栏推荐
- How to make dapper support dateonly type
- Want to make a wechat game for answering questions? Reading this article is enough
- [cloud resident co creation] industrial wisdom "brain", a new acceleration script for old factories
- @Table burst red
- urllib urllib2
- 韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯
- Online text filter less than specified length tool
- Prometheus 2.28.0 新特性
- Hundreds of CVPR people were recruited as new champions. Emoji became a "court witness". M2 MBP was exposed that the hard disk speed was reduced. Today, more big news is here
- Koa2+better-sqlite3 to add, delete, change and query
猜你喜欢

win32版俄罗斯方块(学习MFC必不可少)

What if the excel table exported from the repair record is too large?
![[untitled] error in installation dependency: refusing to install package with name](/img/53/8c871037b7586343fd509dcecb0d96.png)
[untitled] error in installation dependency: refusing to install package with name "* * *" under a package

如何让 Dapper 支持 DateOnly 类型

Use Gerrit + Zadig to realize trunk development and trunk publishing (including byte flying Book Practice)

System.currentTimeMillis() 和 System.nanoTime() 哪个更快?大部分人都会答错!

深度学习的坎坷六十年

Imile uses Zadig's multi cloud environment to deploy thousands of times a week to continuously deliver global business across clouds and regions

MySQL tuning

逆向调试入门-PE文件节表与区块03/07
随机推荐
Solution to inconsistency between RTC time and world time on the server
Koa2+better-sqlite3 to add, delete, change and query
别再重复造轮子了,推荐使用 Google Guava 开源工具类库,真心强大!
极光 · 哈夫曼树の生成(线段树结构 非指针)(仿邻接表)
How to install MySQL 8.0 on rocky Linux and almalinux
PHP FPM startup parameters and important configuration details
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?大部分人都会答错!
Imile uses Zadig's multi cloud environment to deploy thousands of times a week to continuously deliver global business across clouds and regions
昨天面试居然聊了半个多小时的异常处理
[system design] proximity service
System. Currenttimemillis() and system Nanotime() which is faster? Most people get the wrong answer!
超 Nice 的表格响应式布局小技巧
Don't build the wheel again. It is recommended to use Google guava open source tool class library. It is really powerful!
运动App如何实现端侧后台保活,让运动记录更完整?
Basic type variable declaration
Yyds dry inventory solution sword finger offer: find the nearest common ancestor of two nodes in the binary tree
[cloud resident co creation] industrial wisdom "brain", a new acceleration script for old factories
GBase8s数据库遇到951错误是什么原因?
如何让 Dapper 支持 DateOnly 类型
Create an API rapid development platform, awesome!