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.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 mongo
into the command line can be operated.