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

Win10 system mongodDB installation process

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

Share

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

Win10 system mongodDB installation process foreword

After turning around several installation tutorials, I finally finished mongodDB. I also wrote a tutorial myself.

Tutorial Download Software

Download the installation package has nothing to say, go to the official website to download;

There is a suggestion: the best installation software downloaded from the official website, otherwise it is easy to appear some strange things;

Attached official website download link: fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-3.2.9-signed.msi?_ ga=1.89251931.1783557133.1472720198

install software

Click Install, I install in D packing directory;

Create data directories and log directories

Create a folder data in the directory of the F disk, and then install db and log two folders in the data folder;

Explanation: Mongod stores the data destination in the db directory, but when installing the installation package, it will not help the user create it, so the user needs to create it himself;

In addition, folders need to be created under the following directory;

Configure startup mongod

Go to MongoDB installation directory

Open cmd, type d: , and press Enter;

Type cd D:\MongoDB\Server\3.2\bin and enter;

start

Type mongod.exe-dbpath "f:\data\db" and enter;

verification

Open the browser and enter http://127.0.0.1:27017. If a prompt appears, the installation is successful.

"It looks like you are trying to access MongoDB over HTTP on the native driver port. "

enter MongoDB

Go to MongoDB installation directory

Open cmd, type d: , and press Enter;

Type cd D:\MongoDB\Server\3.2\bin and enter;

enter the database

Enter mongo and enter;

installation services

Go to MongoDB installation directory

Open cmd, type d: , and press Enter;

Type cd D:\MongoDB\Server\3.2\bin and enter;

installation services

Enter mongod.exe--logpath f: \data\log\MongoDB.log--logappend --dbpath f:\data\db --directoryperdb --serviceName MongoDB --install, and enter;

inspection

note

When installing services, you need to enter cmd as an administrator, otherwise you will not be able to create services.

Error connecting to the Service Control Manager: Access denied. (5)

+

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