January 2018
Intermediate to advanced
414 pages
10h 29m
English
First, we will create a directory that we can use to store our data, so under the Mongo bin directory, we will execute the following command:
mkdir data
Now, we can start our database with this command:
mongod -dbpath data
This will output several log lines, and at the end, we should see something like:
I NETWORK [thread1] waiting for connections on port 27017
This server will run until we press Ctrl + C, but for now, let's keep it open.
Read now
Unlock full access