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

Mongodb Learning (installation): install under Window

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

Share

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

Step 1: download the installation package:

Click here for the official download address ←. If it is a win system, note whether it is a 64-bit or 32-bit version, please choose the correct version.

Http://www.mongodb.org download version mongodb-win32-i386-2.2.2

Step 2: create a new directory "D:\ MongoDB", extract the downloaded installation package, find all the .exe files in the bin directory, and copy them to the directory you just created.

Step 3: create a new "data" folder under the "D:\ MongoDB" directory, which will serve as the root folder for data storage.

Configure the Mongo server:

Open a CMD window and enter the command as follows:

> d:

> cd D:\ MongoDB

> mongod-- dbpath D:\ MongoDB\ data

Enter http://localhost:27017 in the browser after startup

The web page appears as follows: You are trying to access MongoDB on the native driver port.

For http diagnostic access, add 1000 to the port number .

Indicates that the startup was successful.

Open a new cmd window

> d:

> cd D:\ MongoDB

> mongo

MongoDB shell version:2.2.2

Connectiong to: test

The installation is finished under this window.

Transferred from: Mongodb Learning (installation): install under Window | Tang Wenbo

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

Wechat

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

12
Report