Install MongoDB on windows server

1. Goal

Install MongoDB on the windows server, create users, let MongoDB open to the outside world, and prohibit anonymous access to MongoDB

2. Preparation

1.下载MongoDB(略)mongodb-win32-x86_64-2008plus-ssl-4.0.6-signed.msi

2. The server opens port 27017 to the outside world, because MangoDB uses port 27017 by default

Three, install MongoDB

Double-click the next step to install, pay attention to choose from the definition installation, and remove [ install MongoDB Compass ]

Fourth, create a database, create a user for a specific database

1. Enter MongoDB's command line console

First use cmd on the windows server to enter the bin directory of MongoDB, and then execute the mango.exe program.

Guess you like

Origin blog.csdn.net/xoofly/article/details/108239359