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

How to start mongodb service in windows environment

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

How do I start mongodb services in a windows environment? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

How to start mongodb service in windows environment:

1. Open the command window and change to the "bin" directory under the mongodb installation directory.

Enter the command: cd E:\ software\ MongoDB\ Server\ 3.4\ bin

2. Start the service. Enter the command: "mongod-- dbpath E:\ software\ MongoDB\ data

Note:-- dbpath is the specified database storage directory. Note that there are two "-" before dbpath.

3. If some startup information is printed in the command window, it means that the startup is successful. As follows:

4. Enter http://localhost:27017/ in the browser and you can see that the display information is:

At this point, the mongodb service has started successfully, and the mongodb service can be closed by closing the command window.

After reading the above, have you mastered how to start the mongodb service in the windows environment? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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

Internet Technology

Wechat

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

12
Report