In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Installation and deployment of MongoDB in Windows
Test environment:
Microsoft Windows 7 (flagship 64-bit)
MongoDB 3.0.2 (Windows 64-bit 2008 R2 +)
Installation files:
Mongodb-win32-x86_64-2008plus-ssl-3.0.2-signed.msi
Tip:
1. MongoDB does not support Windows XP or below.
2. Download address of installation file http://www.mongodb.org/downloads
3. English installation manual address http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
Installation and deployment steps:
1. Create the following directory (modify it according to the actual environment)
Installation directory D:\ DevTools\ MongoDB
Data directory D:\ DevTools\ MongoDB\ data\ db
Log directory D:\ DevTools\ MongoDB\ log
2. Execute the .msi file, select "Custom" and select the installation directory
3. Start
After the installation is complete, open the cmd window, go to the D:\ DevTools\ MongoDB\ bin directory, and execute the command:
Mongod.exe-logpath=D:\ DevTools\ MongoDB\ log\ log.txt-dbpath=D:\ DevTools\ MongoDB\ data\ db
The command parameter description:
-- the logpath parameter is the path that sets the log file.
-- the dbpath parameter sets the path where the database files are stored.
All parameter options for the mongod.exe command can be viewed through mongod.exe-- help
4. Install as a windows service
Open the cmd window of windows with administrator privileges, go to the D:\ DevTools\ MongoDB\ bin directory, and execute the command:
Mongod.exe-install-logpath=D:\ DevTools\ MongoDB\ log\ log.txt-dbpath=D:\ DevTools\ MongoDB\ data\ db
The command parameter description:
-- the install parameter is set to install as a server
Once set as a service, you can start or stop MongoDB as a service in the cmd (windows cmd window opened by administrator privileges).
Net start mongodb starts the mongodb service
Net stop mongodb stops the mongodb service
5. Enter the interface of shell environment.
After entering sheelMongoDB, enter the D:\ DevTools\ MongoDB\ bin directory in the cmd window and enter mongo.exe to enter the shell environment interface.
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.