{"id":144568,"date":"2023-08-29T15:13:23","date_gmt":"2023-08-29T12:13:23","guid":{"rendered":"https:\/\/computingforgeeks.com\/?p=144568"},"modified":"2026-03-21T22:57:36","modified_gmt":"2026-03-21T19:57:36","slug":"install-mongodb-on-windows-server","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/install-mongodb-on-windows-server\/","title":{"rendered":"Install MongoDB 7.0 on Windows Server 2022|2019|2016"},"content":{"rendered":"\n<p>This guide provides all the steps needed to install MongoDB 7.0 on Windows Server 2022|2019|2016. But before we plunge in, we need to discuss a few concepts.<\/p>\n\n\n\n<p>Databases play a vital role in many organizations in this digital era where data has become the lifeline of most businesses. They serve as the backbone for storing, managing and organizing data. The critical part is choosing the right database for your business.<\/p>\n\n\n\n<p>Normally, databases are divided into two broad categories i.e. relational and non-relational databases. These two are distinct in the way data is stored and retrieved. In relational databases, data is stored in structured tables with predefined schemas while in non-relational, data is stored in key-value pairs, column-family stores, documents, or graphs.<\/p>\n\n\n\n<p><strong>MongoDB<\/strong> is one of the top non-relational databases that provides a modern and dynamic approach to data management. This cross-platform database is developed and maintained by MongoDB Inc. By offering a unique document-oriented architecture, MongoDB users benefit from the flexible schema design that curbs all the issues revolving around data storage, retrieval, and manipulation. In addition to that, MongoDB provides high performance and scalability which is required when dealing with the diverse requirements of modern enterprises.<\/p>\n\n\n\n<p>This year, MongoDB has made another release, MongoDB 7.0. This version comes with a lot of features and improvements from its predecessor, MongoDB 6.0. The improvements in MongoDB 7.0 are centred on 4 areas i.e. migrations, developer experience, performance and security.<\/p>\n\n\n\n<p><strong><em><span style=\"text-decoration: underline;\">The key improvements in MongoDB 7.0 are:<\/span><\/em><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Empowered Querying<\/strong>: For developers using MongoDB 7.0, querying data becomes more potent. The update brings enhanced tools for handling change streams, which are used to monitor data changes and manage large documents. Introducing new tools like bitwise and percentile operators makes data querying more efficient and accurate. Moreover, users can execute swift updates and deletions on collections that store time-evolving data, offering them greater control.<\/li>\n\n\n\n<li><strong>Streamlined Migration<\/strong>: Simplifying the process of data movement between clusters, MongoDB 7.0 introduces the Cluster-to-Cluster Sync feature. This functionality streamlines the synchronization of data across different segments of your system, ensuring a smoother and more organized transition. With Cluster-to-Cluster Sync, data management becomes notably easier compared to older, more convoluted methods.<\/li>\n\n\n\n<li><strong>Enhanced Security<\/strong>: Another robust security feature in MongoDB 7.0 is the Queryable Encryption, underlining its commitment to safeguarding data. This innovative feature empowers users to keep their vital data encrypted, while still allowing them to perform queries on it without compromising sensitive information.<\/li>\n\n\n\n<li><strong>Optimized Performance<\/strong>: MongoDB 7.0 steps up its performance game with a range of exciting enhancements. The system now employs smarter query execution strategies, accelerates the movement of data chunks within expansive clusters, and introduces a new parameter to handle extensive data sets with exceptional efficiency. Importantly, as your cluster grows, you can trust MongoDB to handle chunk management seamlessly, eliminating the complexities associated with managing numerous small data portions.<\/li>\n<\/ul>\n\n\n\n<p>Below are the steps to install MongoDB 7.0 on Windows Server 2022|2019|2016.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Requirements<\/h2>\n\n\n\n<p>MongoDB 7.0 supports 64-bit versions of Windows on x86_64 architecture:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows Server 2022<\/li>\n\n\n\n<li>Windows Server 2019<\/li>\n\n\n\n<li>Windows Server 2016<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Download MongoDB 7.0 Windows Installer<\/h2>\n\n\n\n<p>We will start by downloading the MongoDB Community .msi installer from the <a href=\"https:\/\/www.mongodb.com\/try\/download\/community?tck=docs_server\" target=\"_blank\" rel=\"noreferrer noopener\">MongoDB Download Center<\/a>. On the page, select the Version, platform and package:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"573\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server.png\" alt=\"\" class=\"wp-image-144576\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server.png 920w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-300x187.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-768x478.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-696x433.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-674x420.png 674w\" sizes=\"auto, (max-width: 920px) 100vw, 920px\" \/><\/figure>\n\n\n\n<p>Once downloaded, proceed with the below step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Run MongoDB 7.0 Installer on Windows<\/h2>\n\n\n\n<p>To run the installation, navigate to the directory where you downloaded the installer. Double-click on it to start the installation.<\/p>\n\n\n\n<p>Proceed as shown.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"388\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-2.png\" alt=\"\" class=\"wp-image-144577\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-2.png 496w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-2-300x235.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>Agree to the licence terms.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"388\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-1.png\" alt=\"\" class=\"wp-image-144578\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-1.png 496w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-1-300x235.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>Select the type of installation you want. For this case, we will proceed with the <strong>Complete<\/strong> installation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"388\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-3.png\" alt=\"\" class=\"wp-image-144579\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-3.png 496w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-3-300x235.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>You need to check the box to install <strong>MongoDB as a service<\/strong> and set it to run as a network service.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"388\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-4.png\" alt=\"\" class=\"wp-image-144580\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-4.png 496w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-4-300x235.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>We will also install MongoDB compass which makes the management of the instance easier.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"388\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-5.png\" alt=\"\" class=\"wp-image-144581\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-5.png 496w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-5-300x235.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>Start the installation, sit back and wait for the installation to happen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"388\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-6.png\" alt=\"\" class=\"wp-image-144582\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-6.png 496w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-6-300x235.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>In case you see this, just select to restart the services and proceed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"496\" height=\"388\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-7.png\" alt=\"\" class=\"wp-image-144583\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-7.png 496w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-7-300x235.png 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/figure>\n\n\n\n<p>Once complete, you will see this. MongoDB compass will be launched and ready for a connection.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"605\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-8-1024x605.png\" alt=\"\" class=\"wp-image-144584\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-8-1024x605.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-8-300x177.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-8-768x454.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-8-696x411.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-8-1068x631.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-8-710x420.png 710w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-8.png 1414w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Connect and Use MongoDB 7.0 on Windows<\/h2>\n\n\n\n<p>Now using MongoDB compass, you can make a connection to the locally installed MongoDB as shown.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"605\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-9-1024x605.png\" alt=\"\" class=\"wp-image-144585\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-9-1024x605.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-9-300x177.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-9-768x454.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-9-696x411.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-9-1068x631.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-9-710x420.png 710w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-9.png 1414w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>If all is okay, you should see this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"605\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-10-1024x605.png\" alt=\"\" class=\"wp-image-144586\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-10-1024x605.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-10-300x177.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-10-768x454.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-10-696x411.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-10-1068x631.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-10-710x420.png 710w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-10.png 1414w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can now create a database on MongoDB and add a collection to it as shown.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server11-1024x522.png\" alt=\"\" class=\"wp-image-144587\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server11-1024x522.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server11-300x153.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server11-768x392.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server11-696x355.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server11-1068x545.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server11-823x420.png 823w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server11.png 1145w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Proceed and add the desired data to the collection.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"500\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12-1024x500.png\" alt=\"\" class=\"wp-image-144588\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12-1024x500.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12-300x146.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12-768x375.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12-696x340.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12-1068x521.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12-860x420.png 860w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12-533x261.png 533w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-12.png 1391w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can also access and use the MongoDB shell as shown.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"577\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-13-1024x577.png\" alt=\"\" class=\"wp-image-144589\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-13-1024x577.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-13-300x169.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-13-768x433.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-13-696x392.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-13-1068x602.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-13-746x420.png 746w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-13.png 1406w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You can create an admin user with a password using the Mongo Shell:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>use admin\ndb.createUser(\n{\nuser: \"<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">adminuser<\/mark>\",\npwd: passwordPrompt(), \/\/ or cleartext password\nroles: &#91; { role: \"userAdminAnyDatabase\", db: \"admin\" }, \"readWriteAnyDatabase\" ]\n}\n)<\/code><\/pre>\n\n\n\n<p>Sample Output:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"841\" height=\"199\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-19.png\" alt=\"\" class=\"wp-image-144590\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-19.png 841w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-19-300x71.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-19-768x182.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-19-696x165.png 696w\" sizes=\"auto, (max-width: 841px) 100vw, 841px\" \/><\/figure>\n\n\n\n<p>Set the desired password for the admin user.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configure MongoDB 7.0 on Windows<\/h2>\n\n\n\n<p>Currently, MongoDB can only be accessed on localhost and has no security enabled. Just like on Unix systems, there is a configuration file used by MongoDB. This configuration file is located at <strong>C:\\Program File\\MongoDB\\Server\\7.0\\bin<\/strong>.<\/p>\n\n\n\n<p>Navigate to this path and open the <em>mongod.cfg<\/em> file for editing. You can use Notepad to edit it. In the file, you can make the below changes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enable Remote Access<\/strong><\/li>\n<\/ul>\n\n\n\n<p>To allow the service to be accessed remotely, make the below adjustment:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># network interfaces\nnet:\n  port: 27017\n  <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">bindIp: 0.0.0.0<\/mark>  # Enter 0.0.0.0,:: to bind to all IPv4 and IPv6 addresses or, alternatively, use the net.bindIpAll setting.<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Enable Password Authentication<\/strong><\/li>\n<\/ul>\n\n\n\n<p>To enable password authentication, modify the line as shown:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>security:\n  authorization: enabled<\/code><\/pre>\n\n\n\n<p>Once the changes have been made, save the file and restart the service. Launch services and locate the MongoDB service as shown.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"912\" height=\"680\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-14.png\" alt=\"\" class=\"wp-image-144591\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-14.png 912w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-14-300x224.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-14-768x573.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-14-696x519.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-14-563x420.png 563w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-14-80x60.png 80w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-14-265x198.png 265w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/><\/figure>\n\n\n\n<p> Once restarted, allow the service through the firewall. Launch the <strong>Windows Firewall<\/strong> and go to <strong>advanced settings<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"671\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-15-1024x671.png\" alt=\"\" class=\"wp-image-144592\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-15-1024x671.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-15-300x197.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-15-768x504.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-15-696x456.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-15-641x420.png 641w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-15-741x486.png 741w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-15.png 1037w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>We need to add a new inbound rule for MongoDB. Here. we will use the port.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"773\" height=\"587\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-16.png\" alt=\"\" class=\"wp-image-144593\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-16.png 773w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-16-300x228.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-16-768x583.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-16-696x529.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-16-553x420.png 553w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-16-80x60.png 80w\" sizes=\"auto, (max-width: 773px) 100vw, 773px\" \/><\/figure>\n\n\n\n<p>Provide the MongoDB port and protocol as shown.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"579\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-17.png\" alt=\"\" class=\"wp-image-144594\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-17.png 713w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-17-300x244.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-17-696x565.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-17-517x420.png 517w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/figure>\n\n\n\n<p>Allow the connection, then proceed and add the connection name for the rule to be added.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"579\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-18.png\" alt=\"\" class=\"wp-image-144595\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-18.png 713w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-18-300x244.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-18-696x565.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-18-517x420.png 517w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Test Remote Connection<\/h3>\n\n\n\n<p>Once created, you can test the connection remotely from a MongoDB client. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mongosh -u &lt;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">username<\/mark>&gt; -p --authenticationDatabase admin --host &lt;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">remote-ip<\/mark>&gt; --port &lt;<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">port<\/mark>&gt;<\/code><\/pre>\n\n\n\n<p>For example:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"309\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-20-1024x309.png\" alt=\"\" class=\"wp-image-144596\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-20-1024x309.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-20-300x90.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-20-768x232.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-20-696x210.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-20-1068x322.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2023\/08\/MongoDB-7.0-on-Windows-Server-20.png 1330w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Voila!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Final Verdict<\/h2>\n\n\n\n<p>That marks the end of this guide on how to install MongoDB 7.0 on Windows Server 2022|2019|2016. Now you can enjoy the awesomeness provided by this new MongoDB release. I hope this was informative.<\/p>\n\n\n\n<p>Related posts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/computingforgeeks.com\/install-mongodb-compass-on-rocky-linux-centos\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install MongoDB Compass on CentOS &amp; Rocky Linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/install-mongodb-rocky-almalinux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Install and Configure MongoDB 7.0 on Rocky Linux |Alma Linux<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/computingforgeeks.com\/install-mongodb-7-0-on-ubuntu\/\" target=\"_blank\" rel=\"noreferrer noopener\">How To Install MongoDB 7.0 on Ubuntu<\/a><\/li>\n<\/ul>\n\n","protected":false},"excerpt":{"rendered":"<p>This guide provides all the steps needed to install MongoDB 7.0 on Windows Server 2022|2019|2016. But before we plunge in, we need to discuss a few concepts. Databases play a vital role in many organizations in this digital era where data has become the lifeline of most businesses. They serve as the backbone for storing, &#8230; <a title=\"Install MongoDB 7.0 on Windows Server 2022|2019|2016\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/install-mongodb-on-windows-server\/\" aria-label=\"Read more about Install MongoDB 7.0 on Windows Server 2022|2019|2016\">Read more<\/a><\/p>\n","protected":false},"author":21,"featured_media":144577,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[461,299,90],"tags":[38765],"class_list":["post-144568","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-databases","category-how-to","category-windows","tag-mongodb-7-0-on-windows-server"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/144568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=144568"}],"version-history":[{"count":1,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/144568\/revisions"}],"predecessor-version":[{"id":163314,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/144568\/revisions\/163314"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/144577"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=144568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=144568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=144568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}