MongoDB Installation
Let’s install MongoDB on our local machine and start using it.
We'll cover the following...
The procedure for installing MongoDB is different for Windows, macOS, and Linux users. Our main guide for the installation of MongoDB is the official installation documentation.
Installation
We use the “Community Edition” of MongoDB, so we have to make sure to download the proper version for the operating system we’re using. For example, if we use Arch Linux, we’ll run the following command:
pamac build mongodb-bin
And, then we activate it using this code:
sudo systemctl start mongodb
sudo systemctl enable mongodb
In the end, we must test our installation using the following code:
mongo
Once we reach this step, the kind of operating system we’re using doesn’t matter anymore. One more thing that may be useful is MongoDB Compass, a graphical user interface (GUI) that allows us to visualize and actually see the database.
We can also download and install Compass to perform ad hoc queries and CRUD operations ...