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 connection testing

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

Share

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

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

Only if both are installed on server2003

First, decompress the files

After decompressing, move the folder to disk C or disk D, name mongodb, and create a data folder, otherwise an error will be reported later, as shown in the figure:

2. Start mongodb service

Go to the installation file directory of mongodb.

C:\ mongodb\ mongodb-win32-i386-2.2.2\ bin\

Startup service instruction: mongod.exe-dbpath "C:/mongodb/data"

After the service is started, the last line will indicate that port 27017 is already occupied and you can make a simple local or remote connection.

III. Local connection

If the local service cannot be started, try to delete the lock file under the data file and restart the service.

Local connection: re-launch a cmd window, enter the installation directory and enter mongo (or mongo.exe) directly

IV. Remote connection

Remote connection: mongo 100.1.6.151 27017 (remote ip address)

5. Check with web:

Http://100.1.6.148:27017/

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