Learn how to install and use MongoDB on Windows Server 2016. MongoDB is a popular and powerful NoSQL document database which emphasizes flexibility and scalability, and stores data in JSON documents.
- A Cloud Server with Windows Server 2016
Use Remote Desktop to connect to the server. Open a browser window and go to the MongoDB download center. Click on the Community Server tab.
Select Windows Server 2008 R2 64-bit and later with SSL support x64 as the version. Then click DOWNLOAD (msi).
mongodb-win32-x86_64-2008plus-ssl-3.4.10-signed.exe file which you downloaded. This will launch the installation wizard. Click Next to begin.
Accept the License Agreement, then click Next.
Choose the setup type, then click Next.
Click Install to complete the installation.
Create a folder for MongoDB:
To start MongoDB, open a command prompt (Start > Windows System > Command Prompt) and run
mongod.exe with the command:
MongoDB will run as long as this command prompt window is open. When you are finished working with MongoDB, use CTRL + C to exit this command prompt window and shut down MongoDB.
To use MongoDB, open a new command prompt window and connect to the MongoDB server with the command:
This will connect you to the MongoDB client, where you can issue MongoDB commands just as you would on a Linux server. For more information on working with MongoDB, see our articles Installing and Running MongoDB on a Linux Server and Tutorial: Use MongoDB to Store Comments.