下载后如何安装MongoDB [英] How to install MongoDB after downloading

查看:69
本文介绍了下载后如何安装MongoDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任务: 下载后安装MongoDB

Task: To install MongoDB after downloading

注意: 由于某些原因,我无法从终端安装它.我正在使用Ubuntu 14.04

To Note: I can't install it from terminal for some reasons. And I am using Ubuntu 14.04

下载后,我只是不知道该怎么办.因为没有可执行文件或其他任何东西.

I just don't know what to do after downloading. Coz there are no executable files or something.

推荐答案

这是一步一步安装mongodb的很好的文章.

This is preety good article for installation of mongodb step by step.

How-to-install-mongodb-on- ubuntu

单击此处查看mongoDB教程

要启动mongodb服务器:mongod

To start your mongodb server : mongod

您可能会发现未创建数据库目录的错误.为此,

You may find error that database directory is not created. For that,

创建数据库目录(默认路径):mkdir -p /data/db,然后再次重新启动服务器.如果没有发现任何错误,请跳过此部分.您也可以更改数据库目录路径.这是该mongod --dbpath /your/path

Create your database directory(default path) : mkdir -p /data/db and then restart your server again.If you did not find any error then skip this part.You can also change your database directory path. Here is command for that mongod --dbpath /your/path

打开新终端并执行:mongo

如果您有任何疑问,请随时发表评论.祝您好运.

If you have any query feel free to comment.Good luck.

这篇关于下载后如何安装MongoDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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