![]() MongoDB’s Install Documentation is a great place to start when installing MongoDB. It’s updated constantly, and it will provide you with the most recent changes to any part of the installation process. We’ve also provided step-by-step instructions here. Important: The first step is to create a data directory to store MongoDB’s databases. Open git Bash, then cd into the root directory ( c: drive) of your computer: Without this, you won’t be able to complete the installation. This directory will be the default location for MongoDB’s databases. Without a directory for your databases, MongoDB will not run. Now you can download and install MongoDB. To install MongoDB on a Windows computer, go to the MongoDB Download Center. Make sure that “MongoDB Community Server” is selected, as shown in the following image. Select the most current release from the Version dropdown menu. Then under OS, choose Windows, and under Package, choose MSI.Ĭlick Download. The next page will thank you for downloading the MongoDB Community Server and provide a signup option that says “Want an alternative to installing and running MongoDB yourself?”. Ignore this section and don’t fill out any of the form fields. Follow the prompts by clicking Next in the Setup Wizard, as shown in the following image: In a few seconds, your browser will notify you that the installation file is downloading.Īfter the installer has downloaded, open it to begin the installation process. Note: A window might appear mid-installation, asking you whether you’re sure you want to download a particular component of MongoDB. Click yes otherwise, the install will fail. You’ll also need to accept the terms in the License Agreement before you can continue. When the installer prompts you to Choose Setup Type, click Complete, as shown in the following image: DOWNLOAD MONGODB MACOS LICENSE On the next screen, ensure that the checkbox for “Install MongoD as a Service” is checked and that the option “Run Service as Network Service user” is selected. Leave everything the way it is and click Next, as shown in the following image: These options should already be selected. Important: DO NOT install MongoDB Compass along with your MongoDB install.Įnsure that the checkbox for Install MongoDB Compass is NOT selected and click Next, as shown in the following image: You should then see a screen that says Install MongoDB Compass. The last screen you’ll see will say that you’ve completed the installation.Ĭlick Install to finish installing MongoDB, as shown in the following image: On the next screen, you’ll see a message that says “Ready to install MongoDB” followed by the version number. Now that you’ve installed MongoDB, you’ll need to add the PATH to the MongoDB install to your environmental variables. Open any folder on your computer and click on This PC in the left-hand navigation bar, as shown in the following image: Follow these steps to do that:Ĭopy the PATH to MongoDB to your clipboard. Next, double-click your C: drive, as shown in the following image:ĭouble-click the folder named Program Files, then double-click the MongoDB folder. Double-click the Server folder, then double-click the folder with the MongoDB version number as its name.įinally, double-click the folder named bin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |