If it isn’t there, create one with the command touch. Enter cd~ to do that.Ĭheck if you see the. Make the directory “home” in Hyper Terminal. Git Bash is the default shell application to use to access the Hyper Terminal. We use Hyper Terminal to Make mongod Alias Shortcuts. To store the MongoDB databases, you need a folder in C:\Drive which name should be data and then again create new folder within it name should be db To simplify the MongoDB setup, when it comes to the Service Configuration page it will ask you to choose either “Run the service as Network Service user” or “Run service as a local or domain user.” If you’re unsure, try with the Complete option. It’s the option where you can pick the features you want to install. Alternatively, you can choose a Custom installation.
you can choose either a Complete installation to install all the features. Next, select the directory for the MongoDB databases.
You can choose either a Complete installation to install all the features.
Go to where the download is located and launch the 'msi' installer by double-clicking on it.įollow the steps to finish the setup MongoDB Windows. Next choose the “https:” address which contains “msi” is at the end of the address. Under “OS”section, select “Windows 64-bit x 64”. Under “Select Version” section, please choose the “(current release)” option. Make sure that you are on the “Server” download page. Visit the MongoDB Download Center to download the MongoDB Server
Minimum requirement for the Windows architecture is a 64-bit server, Windows 7 or Windows 8 or later Windows Server version.įree space to accommodate the databases, data collections, and MongoDB server.
But, this step-by-step tutorial explains how to install and configure the MongoDB on your PC. Installing MongoDB on Windows application is a little bit tricky task. It works with UNIX-like systems and macOS, and also on Windows systems. MongoDB is a flexiable & sca scalable NoSQL database, which makes it perfect for businesses of all sizes.
That’s it! If you notice, the steps above are very similar to that listed in the official documentation, but these steps worked better for me.
After some finagling, the below code worked for me as well: sc.exe create MongoDB binPath= "\"C:\Program Files\MongoDB\Server\3.6\bin\mongod.exe\" -service -config=\"C:\Program Files\MongoDB\Server\3.6\mongod.cfg\"" DisplayName= "MongoDB" start= "auto" The command listed in the documentation didn’t work for me, either. If you’ve completed everything up to this point, you’re ready to create a Windows service. This file should contain the following: systemLog: Next, create a mongod.cfg file and place it in C:\Program Files\MongoDB\Server\3.6\. Create two directories using the command below: md "\data\db" "\data\log" Without this, the installer would get halfway through, fail, and then rollback all changes.īefore moving on to install the Windows Service, you’ll need to complete a couple preliminary steps. The key here was the SHOULD_INSTALL_COMPASS="0" snippet. Keep in mind that these commands work best using the standard cmd shell, and not Powershell.Īfter downloading MongoDB, place the msi installer on the root C: drive, and then run the following: msiexec.exe /q /i C:\mongodb-win32-x86_64-2008plus-ssl-3.6.5-signed.msi SHOULD_INSTALL_COMPASS="0" Although the Mongo documentation is thorough, the exact commands listed didn’t work for me out of the box. I had a hell of a time trying to figure out how to install MongoDB silently via the command line in Windows server.