Step 4: Fix the Windows firewall (on all three servers). Step 3: Create a database and log directory (on all three servers) Remember you have to do this on all three your servers. You should now have finished the installation so simpely press “Finish”. On the window above just press “Install” to start the installation. Press you wish to install the “Complete” version on the picture above. Read the license and then tick the box you accept the license and press next on the picture above. Just follow the pictures below to install MongoDB, you have to do this on all three servers. Įven it does say Windows Server 2008 it does work perfect on Windows Server 2016! MongoDB provides windows installer packages so simply download their msi file from their website. Step 1: Download MongoDB (on all three servers)
Server Type: t2.large (T Server Type is probably not a good match for a production db however for this tutorial it is cheap and will do it’s part)Īs a pre requirement all servers in the same workgroup or in the same domain, if they are not then you have to add all the servers in your hosts file so mongodb knows how to connect to them. I am using AWS for this setup and created three servers that have Windows Server 2016 installed. In this guide I will show some simple steps of how to setup a mongodb installation in a replication on Windows Server.