Install and Use MongoDB on Windows Server 2016

Leave your reply

Introduction

Learn how to install and use MongoDB on Servidor Windows 2016. MongoDB is a popular and powerful NoSQL document database which emphasizes flexibility and scalability, and stores data in JSON documents.

Requirements

  • A Servidor Cloud with Servidor Windows 2016

Install MongoDB

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.

Install MongoDB on Servidor Windows 2016

Select Servidor Windows 2008 R2 64-bit and later with SSL support x64 as the version. Then click DOWNLOAD (msi).

Install MongoDB on Servidor Windows 2016

Open the 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.

Install MongoDB on Servidor Windows 2016

Accept the License Agreement, then click Next.

Install MongoDB on Servidor Windows 2016

Choose the setup type, then click Next.

Install MongoDB on Servidor Windows 2016

Click Install to complete the installation.

Install MongoDB on Servidor Windows 2016

Run MongoDB

Create a folder for MongoDB:

C:\data\db

To start MongoDB, open a command prompt (Start > Windows System > Command Prompt) and run mongod.exe with the command:

"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe"

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:

"C:\Program Files\MongoDB\Server\3.4\bin\mongo.exe"

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 Servidor Linux and Tutorial: Use MongoDB to Store Comments.