MongoDB 3.6 on Windows Server 2016

Visits: 1434

MongoDB 3.6 on Windows Server 2016 with Security

MongoDB 3.6 on Windows Server 2016 is an open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. Floating Cloud MongoDB  combines the convenience of MongoDB with security and accessibility. Default installations of MongoDB 3.6 are configured not to allow any connections from anywhere on the internet, but is bound to localhost without any password. We have configured it for you with a password and opened it to other networks.

You can easily install MOngoDB 3.6 on Windows from this link https://aws.amazon.com/marketplace/pp/B07B5KMNMB

New Features in MongoDb 3.6

  • Enable real time updates with Change streams. Update game scores or market prices
  • Retryable writes means that you can write less code, since the retries are built in for when the DB inaccessible
  • Find Anything easily with Fully Expressive Array Updates

As a Windows server you get all of the benefits of using Windows with the familiar Windows File Manager and text Editors.

Easy installation of MongoDB  on Windows Server 2016 can be found at: https://aws.amazon.com/marketplace/

Access Instructions to connect with MongoDB from Floating Cloud.

When you first launch the instance from the AWS MarketPlace it produces the MongoDB password. So you have 2 passwords to start: (1) the Windows Password; (2) The MongoDb password which is the same as your Instance ID.

Remote Desktop connection to your Windows EC2 instance.

Your MongoDb Database is ready to use right after launch. You can connect to it remotely via MongoDB CLI or via an of the available drivers that connect to your application.

Access Windows Desktop via Remote Desktop RDP.

When you need access to the Windows Desktop, like simply copying files with copy / paste from your PC. You can also run the MongoDB CLI from PowerShell within the Remote Desktop.

Remote Desktop login uses a Password randomly assigned by AWS

To login to your server from Windows , right click on your instance ID, in the AWS Ec2 Panel,

Select “Connect”

Get Password using your previously downloaded key by following the on screen AWS instructions

Click on “Download Remote Desktop”

Open the downloaded File and paste your decrypted password when asked to do so.

MongoDB Has already been installed as a Service

We at Floating Cloud have installed a DB password for you.

The DB Password is the same as your instance ID. You can find it in the AWS EC2 Panel, select your new Floating Cloud MongoDB Instance. The Instance ID is in the lower pane.

The preinstalled username is “charming” This user has Root access, so be sure to protect your password.

Access Mongo via Powershell, type:

mongo  admin -u charming -p <INSTANCE-ID>

See our selection of pre-installed MongoDB servers:

[products category=”mongodb”]

Remote CLI connection to MongoDB using a password.

In the above command, “admin” is the DB name. The remote connection URL below has the DB name admin at the end. Use a different db name to connect to that one

For Remote CLI connection, open a Powershell window on computer that has MongoDB installed. If MongoDB isn’t installed you wont be able to use its command line.

mongo mongodb://PUBLICDNS-OR-IP:27017/admin -u charming -p INSTANCE-ID

From the MongoDB Shell you can see installed DB’s type”show dbs”

From here you can build, develop and learn,

You can download MongoDB drivers from https://docs.mongodb.com/ecosystem/drivers/

Good luck!

Easy installation of MongoDB  on Windows Server 2016 can be found at: https://aws.amazon.com/marketplace/

Installation Script.

We put the reset password script to get AWS Instance ID then set it as the password

The script is in the Task Scheduler, and runs at reboot.

Install MongoDB with Security on Windows Server 2016

You can read about installing a MongoDB Replica Set on Docker Swarm .

https://floatingcloud.io/running-a-mongodb-replica-set-on-docker-1-12-swarm-mode-step-by-step/

Relate Blog articles

https://floatingcloud.io/make-xfs-faield-mkfs-xfs-no-such-file-or-directory/

http://float.i.ng/create-mongodb-database-windows-nosql-db/

https://floatingcloud.io/kubernetes-running-mongodb-on-kubernetes-with-statefulsets/

 Mongodb-replica-set-in-docker-swarm-quick-installation-guide