MongoDB installed under Ubuntu18.04

15821141-ef541f2600344828.png
the photo from unsplash

EDITORIAL

  Said installation MongoDB, but the Ubuntu bit different under Ubuntu18.04, because my Ubuntu is a Windows-based guest operating systems installed in the Windows10.
15821141-95d7d079705340e7.png
Probably so

start installation

  First, you need to open Ubuntu, just like ordinary software as open. Then update about your software sources:

sudo apt-get update

Waiting at your complete software update, and then install MongoDB:

sudo apt-get install -y mongodb

Then wait until he is installed, and then create a "/ data / db" folder:

sudo mkdir -p /data/db

Why create this folder so it? To see other people say is this:

MongoDB data stored in the db directory data directory, but this directory is not automatically created during the installation process, so you need to manually create the data directory and create db directory in the data directory.

Then wait for the completion of MongoDB can be used, and input mongointo the command line can be operated.

Guess you like

Origin blog.csdn.net/weixin_33966095/article/details/90816268