Let's specify an installation directory and choose the custom installation option:
Next, we create the directory where we will store the data. By default, we have to create the /data/db folder inside the MongoDB directory we choose when we install it. We also have to create /log/mongo-server.log in the MongoDB directory.
After that, we will create our MongoDB ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.