I created the folder at /Users/Khanh/MongoDB/data/db. In this tutorial, I will use the custom folder to start the MongoDB server. Make sure the folder, which will be used by MongoDB, has all permission to read, write. You can change this default folder to another folder by using the –dbpath option to pass the path of the folder when starting the MongoDB server. You should create this folder before starting the MongoDB. By default, this folder will be located at /data/db. When running, MongoDB needs a folder to store the data. Here, we have mongo file to connect to MongoDB server, and mongod file to start a MongoDB server. Here, we have mongo file to connect to MongoDB server, and mongod file to start a MongoDB server. After extracting, you should see the folder mongodb-osx-x8664-3.6.3 with the content as below: All necessary files of MongoDB are contained in the bin folder. tgz file, so you can use the tar command to extract this file.Īfter extracting, you should see the folder mongodb-osx-x86_64-3.6.3 with the content as below:Īll necessary files of MongoDB are contained in the bin folder. To do that, you can go to the download page of MongoDB at and choose the latest version of MongoDB for macOS. ![]() In this tutorial, I will show you all how we can install MongoDB on macOS.įirst of all, we need to download the MongoDB binary file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |