0 0
Read Time:2 Minute, 28 Second

Install MongoDB Community Edition

Procedure

Follow these steps to install MongoDB Community Edition using the MongoDB Installer wizard. The installation process installs both the MongoDB binaries as well as the default configuration file <install directory>\bin\mongod.cfg.

1. Download the installer.

Download the MongoDB Community .msi installer from the following link:

➀ MongoDB Download Center

  1. In the Version dropdown, select the version of MongoDB to download.
  2. In the Platform dropdown, select Windows.
  3. In the Package dropdown, select msi.
  4. Click Download.

2. Run the MongoDB installer.

For example, from the Windows Explorer/File Explorer:

  1. Go to the directory where you downloaded the MongoDB installer (.msi file). By default, this is your Downloads directory.
  2. Double-click the .msi file.

3. Follow the MongoDB Community Edition installation wizard.

The wizard steps you through the installation of MongoDB and MongoDB Compass.

  1. Choose Setup Type You can choose either the Complete (recommended for most users) or Custom setup type. The Complete setup option installs MongoDB and the MongoDB tools to the default location. The Custom setup option allows you to specify which executables are installed and where.
  2. Service Configuration Starting in MongoDB 4.0, you can set up MongoDB as a Windows service during the install or just install the binaries. MongoDB Service MongoDB The following installs and configures MongoDB as a Windows service. Starting in MongoDB 4.0, you can configure and start MongoDB as a Windows service during the install, and the MongoDB service is started upon successful installation.

Image of the MongoDB Installer wizard - Service Configuration.

  • SelectΒ Install MongoD as a ServiceΒ MongoDB as a service.
  • Select either:
    • Run the service as Network Service user (Default)This is a Windows user account that is built-in to Windowsor
    • Run the service as a local or domain user
      • For an existing local user account, specify a period (i.e. .) for the Account Domain and specify the Account Name and the Account Password for the user.
      • For an existing domain user, specify the Account Domain, the Account Name and the Account Password for that user.
  • Service Name. Specify the service name. Default name is MongoDB. If you already have a service with the specified name, you must choose another name.
  • Data Directory. Specify the data directory, which corresponds to the --dbpath. If the directory does not exist, the installer will create the directory and sets the directory access to the service user.
  • Log Directory. Specify the Log directory, which corresponds to the --logpath. If the directory does not exist, the installer will create the directory and sets the directory access to the service user.
  1. Install MongoDB CompassOptional. To have the wizard install MongoDB Compass, select Install MongoDB Compass (Default).
  2. When ready, click Install.
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %

Average Rating

5 Star
0%
4 Star
0%
3 Star
0%
2 Star
0%
1 Star
0%

Leave a Comment