In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how to install and configure MongoDB on the Windows platform, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Overview
MongoDB is a database based on distributed file storage. Written in C++ language. Designed to provide scalable high-performance data storage solutions for WEB applications. MongoDB is a product between relational database and non-relational database, which is the most functional and most like relational database in non-relational database. MongoDB provides precompiled binaries for 32-bit and 64-bit systems. You can download and install them from MongoDB's official website. MongoDB precompiled binaries can be downloaded from https://www.mongodb.com/download-center/community.
Installation steps
Download the .msi file, double-click the file after download, and follow the instructions to install it.
During installation, you can set up your installation directory by clicking the "Custom" button.
If you see it in the list of services, it indicates that the installation was successful.
test
Visit http://127.0.0.1:27017/ and see the following to indicate success.
It looks like you are trying to access MongoDB over HTTP on the native driver port.
Configure account permissions
1. There is no permission at the beginning.
2. Add administrator account.
Use admin db.createUser ({user: "myUserAdmin", pwd: "abc123", roles: [{role: "userAdminAnyDatabase", db: "admin"}]})
3. In the configuration file, enable permission verification and restart the service.
4. Reconnect and verify. You can find that there is no access.
5. At this time, verify the account.
Use admin db.auth ("myUserAdmin", "abc123")
6. If you re-query, you can see that you have permission.
Show dbs on the Windows platform how to install and configure MongoDB to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.