In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Official website address: https://www.mongodb.com/download-center?jmp=nav#community
Click the link in the figure to enter the download list of all versions
After I download version 3.6.5, follow the steps below to install it.
Select a custom installation mode:
Select the installation directory path
Click finish when the installation is complete
Start the MongoDB service
Enter the MongoDB installation directory
Description: mongod.exe is the MongoDB server, mongo.exe is the MongoDB client
Go to the bin directory of the Mong installation directory, open the cmd command line, and enter the following command
Mongod-- dbpath "D:\ Program Files\ MongoDB\ Server\ 3.6\ data\ db"
You can see the following message, which indicates that the server of MongDB has started successfully and the port is 27017.
MongoDB client connection
Enter the cmd command in the bin directory, enter "mongo" or "mongo.exe", and the following message appears indicating that the connection to the server is successful.
MongoDB as a Windows service
Execute under the bin directory of the 1:MongoDB installation directory:
Mongod-- dbpath "D:\ Program Files\ MongoD
B\ Server\ 3.6\ data\ db "--logpath" D:\ Program Files\ MongoDB\ Server\ 3.6\ data\ log\ Mo
NgoDB.txt "- install-serviceName" MongoDB "
Description:
-- dbpath: specify the database directory of MongoDB
-- logpath: log directory
-- install: a service made into windows
-- serviceName: the name of the service created as windows
2: start the MongoDB directory you just made in window:
Net start MongoDB:MongoDB corresponds to the serviceName above.
On the windows service management page, you can also see the MongoDB service we have completed:
Summary
The above is the tutorial diagram of the installation and startup of MongoDB and making windows service introduced by the editor to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. Thank you very much for your support to the website!
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.