Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install MongoDB on Windows

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Download the appropriate mongodb

Official website download address: http://www.mongodb.org/downloads

MongoDB for Windows comes in three versions:

MongoDB for Windows Server 2008 R2 runs only on Windows Server 2008 R2, Windows 7 64-bit, and newer Windows versions. This version takes full advantage of new enhancements to the Windows platform and does not run on older versions of Windows. MongoDB for Windows 64-bit runs only on 64-bit versions of Windows XP and above, including Windows Server 2008 R2 and Windows 7 64-bit. MongoDB for Windows 32-bit runs on any 32-bit Windows version above Windows XP. The 32-bit version of MongoDB is only available for legacy systems and test and development system applications. I downloaded the latest version is 2.2.0, installation system reported "mongodb startup failed to locate program input point InterlockedCompareExchange64" error. Changed in version 2.2: MongoDB does not support Windows XP. Please use a more recent version of Windows to use more recent releases of MongoDB.),Download the old version again.

2. Unzip the installation package to the appropriate path

Unzip the installation package to D:\data\mongodb.

3. Create a new data folder

New data file D:\data\db

4. Start Mongodb

Execute the following command:

D:\data\mongodb\bin\mongod.exe --dbpath D:\data\db

If the path contains spaces, enclose the entire path in double quotes, for example:

D:\data\mongodb\bin\mongod.exe --dbpath "D:\data\db test"

5. Set up the log directory for MongoDB and make MongoDB a Windows service

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report