In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Installation of mongoDB under Win10
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.
Download address for each platform of MongoDB: https://www.mongodb.com/download-center#community
After downloading and installing, right-click in the installation directory to create a folder data, then enter the data directory to create a new db directory and logs log directory, and enter the logs directory to create a new log file mongo.log
Input: db
Insert data example: db.test.insert
Browser input locahost:27017
Method 1:
Cmd enters the installation path and configures the mogoDB system service:
C:\ Program Files\ MongoDB\ Server\ 3.4\ bin > mongod-- bind_ip 0.0.0.0-- logpath "C:\ Program Files\ MongoDB\ Server\ 3.4\ data\ logs\ mongo.log"-- logappend-- dbpath "C:\ Program Files\ MongoDB\ Server\ 3.4 data\ db"-- port 27017-serviceName "MongoDB"-- serviceDisplayName "MongoDB"-- install
Then you can find this service in the system service to start.
Method 2:
Create a conf folder and create a mongodb.config under the conf directory:
Dbpath=D:\ Program File\ MongoDB\ data\ db # database path
Logpath=D:\ Program File\ MongoDB\ data\ logs\ mongodb.log # log output file path
Logappend=true # error log is in append mode
Journal=true # enables log files, by default
Quiet=true # filters out useless log information. Set it to false if you need to debug.
Port=27017 # port number defaults to 27017
Add the MongoDB installation directory to the system environment variable Path
D:\ Program File\ MongoDB\ bin
Add PowerShell for system Services (Admin)
"D:\ Program File\ MongoDB\ bin\ mongod.exe"-- config "D:\ Program File\ MongoDB\ conf\ mongodb.config"-- install-- serviceName "MongoDB"
Start the service
Net start mongodb
Managing MongoDB with MongoDB Compass Community
Or download and install the Robomogo client
Https://robomongo.org/download
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.