www_mongodb_com_docs_manual_tutorial_install_mongodb_on_wind
www_mongodb_com_docs_manual_tutorial_install_mongodb_on_wind
Overview
Considerations
Additional Considerations
Overview
Use this tutorial to install MongoDB 8.0 Community Edition on Windows using the default
installation wizard.
MongoDB Version
This tutorial installs MongoDB 8.0 Community Edition. To install a different version of
MongoDB Community, use the version drop-down menu in the upper-left corner of this page
to select the documentation for that version.
Installation Method
This tutorial installs MongoDB on Windows using the default MSI installation wizard. You can
also install MongoDB on Windows by these other methods:
Considerations
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
The MongoDB Shell (mongosh) is not installed with MongoDB Server. You need to follow the
mongosh installation instructions to download and install mongosh separately.
Platform Support
MongoDB 8.0 Community Edition supports the following 64-bit versions of Windows on
x86_64 architecture:
Windows 11
NOTE
MongoDB is not supported on Windows Subsystem for Linux (WSL). To run MongoDB on
Linux, use a supported Linux system.
Virtualization
Oracle offers experimental support for VirtualBox on Windows hosts where Hyper-V is
running. However, Microsoft does not support VirtualBox on Hyper-V.
Production Notes
Before deploying MongoDB in a production environment, consider the Production Notes for
Self-Managed Deployments document which offers performance considerations and
configuration recommendations for production MongoDB deployments.
On Windows, to collect system data such as disk, cpu, and memory, FTDC requires Microsoft
access permissions from the following groups:
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Performance Log Users
If the user running mongod and mongos is not an administrator, add them to these groups to
log FTDC data. For more information, see the Microsoft documentation here .
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.
Download the MongoDB Community .msi installer from the following link:
d. Click Download.
a. Go to the directory where you downloaded the MongoDB installer (.msi file). By
default, this is your Downloads directory.
The wizard steps you through the installation of MongoDB and MongoDB Compass.
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
a. 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.
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
b. Service Configuration
You can set up MongoDB as a Windows service during the install or just install
the binaries.
You can configure and start MongoDB as a Windows service during the install,
and the MongoDB service is started upon successful installation.
For an existing local user account, specify a period (.) for the
Account Domain and specify the Account Name and the
Account Password for the user.
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
c. Install MongoDB Compass
Optional. To have the wizard install MongoDB Compass, select Install
MongoDB Compass (Default).
Install mongosh
The .msi installer does not include mongosh. Follow the mongosh installation instructions to
download and install the shell separately.
If you would like to customize the service, you must stop the service. Customize the MongoDB
instance by editing the configuration file at <install directory>\bin\mongod.cfg.
See Run MongoDB Community Edition from the Command Interpreter for instructions to start
a MongoDB instance.
If you have not already done so, follow the mongosh installation instructions to download
and install the MongoDB Shell (mongosh).
Be sure to add the path to your mongosh.exe binary to your PATH environment variable
during installation.
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Open a new Command Interpreter and enter mongosh.exe to connect to MongoDB.
Insert Documents
Query Documents
Update Documents
Delete Documents
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Open a Windows command prompt/interpreter (cmd.exe) as an Administrator.
IMPORTANT
Create the data directory where MongoDB stores data. MongoDB's default data
directory path is the absolute path \data\db on the drive from which you start
MongoDB.
cd C:\
md "\data\db"
IMPORTANT
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
To learn more about security and MongoDB, see the Security Documentation.
3 Connect to MongoDB.
If you have not already done so, follow the mongosh installation instructions to
download and install the MongoDB Shell (mongosh).
Be sure to add the path to your mongosh.exe binary to your PATH environment variable
during installation.
Insert Documents
Query Documents
Update Documents
Delete Documents
Additional Considerations
WARNING
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Before you bind your instance to a publicly-accessible IP address, you must secure your
cluster from unauthorized access. For a complete list of security recommendations, see
Security Checklist for Self-Managed Deployments. At minimum, consider enabling
authentication and hardening network infrastructure.
Upgrading a full release series (e.g. 6.0 to 7.0) requires a new installation.
Back Next
Install using .tgz Tarball Install Using msiexec.exe
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF