如何通过创建帐户运行mongodb [英] How to run mongodb by making an account

查看:51
本文介绍了如何通过创建帐户运行mongodb的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Mongodb 很陌生.所以,对不起,如果我的问题是初步的.我需要通过 mongod --dbpath mongodb/data/db 启动 MongoDb,但我收到了找不到 mongodb 命令的错误.我在许多 github 代码和 stackoverflow 中看到其他人下载并安装了 mongodb,但是当我访问 monodb 网站而不是下载时,我通过创建帐户看到了无需下载立即部署免费集群"选项.我注册了一个账号,没有下载.如何使用该帐户并以不会出现此错误的方式运行 mongodb?

I am very new to Mongodb. So, sorry if my question is preliminary. I need to start MongoDb by mongod --dbpath mongodb/data/db but I get the error that mongodb command is not found. I saw in many github codes and stackoverflow that others download and install mongodb but when I visit monodb website instead of download I saw the option "No download necessary Deploy a free cluster now" by making an account. I made an account and did not download it. How can I use that account and run mongodb in a way that I do not get this error?

推荐答案

我找到了解决方案,我把它放在这里供其他人在同一情况下使用.我从主站点下载了 mongodb.我尝试了启动 mongodb 的教程,但我遇到了一些需要时间的错误.我在 ubuntu 16.最后我更改了 ubuntu 版本,在 youtube 视频中找到了这三个命令,解决了我的问题.

I have found the solution and I put it heere for usage of others in the same case. I downloaeded mongodb from the main site. I tried the tutorial for starting mongodb but I got errors that took time for me. I was in ubuntu 16. Finally I changed the ubuntu version and found these three commands in a youtube video which solved my problem.

sudo apt-get install mongodb
sudo apt-get update
sudo service mongodb start

这篇关于如何通过创建帐户运行mongodb的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆