How to install MongoDB after boot

Task: To install MongoDB after boot

Note: For some reason, I cannot install it from the terminal. And I use Ubuntu 14.04

I just don’t know what to do after loading. Coz missing executables or something like that.

+1
mongodb ubuntu
source share
1 answer

This is a good article to install mongodb step by step.

How-to-install-mongodb-on-ubuntu

Click here for mongoDB tutorials

To start the mongodb server: mongod

You may find an error that the database directory has not been created. For this

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

enter image description here

Open a new terminal and run: mongo

enter image description here

If you have any questions, feel free to comment. Good luck.

+1
source share

All Articles