无法运行mongodb [英] Unable to run mongodb
问题描述
我在这里遇到了一些奇怪的问题。我正在安装mongodb,但我无法启动它。以下是我已经完成的步骤
1)我从他们的网站上下载了mongodb(正确的版本)
2)为数据库创建了一个文件夹
3)使用命令mongod.exe --dbpath(文件夹路径)
但整个mongodb崩溃并向我显示此错误
http://i57.tinypic.com/21e6rye.jpg [ ^ ]
http://i59.tinypic .com / juaf5w.jpg [ ^ ]
有人可以帮帮我吗?
谢谢
I am in strange kind of problem here. I am installing mongodb, but i am unable to start it. Here are the steps, I have done
1) I have downloaded mongodb (correct version) from their website
2) Created one folder for database
3)used command mongod.exe --dbpath (folder path)
But the whole mongodb crashes and shows me this error
http://i57.tinypic.com/21e6rye.jpg[^]
http://i59.tinypic.com/juaf5w.jpg[^]
can someone help me out?
Thanks
推荐答案
您是否已将MongoDB安装为服务?如果没有,请安装MongoDB作为Windows服务。事情会很好。
Have you installed MongoDB as a service?? If not then please install MongoDB as a windows service. Things will work fine.
mongod --dbpath "c:\mymongodb" --logpath "c:\mymongodb\logs.txt" --install --serviceName "MongoDB"
确保你在MongoDB安装文件夹的bin中,或者bin添加到PATH。
Make sure you are either inside the bin on MongoDB installation folder or bin is added to the PATH.
这篇关于无法运行mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!