Here are the steps to install MongoDB:
1. Open the command prompt as an "Administrator"
2. Change the mongo-db-config.conf file to use absolute paths. You can get the instructions on how to create a MongoDB configuration file in this blog post
dbpath = C:\techjunkie\mongodb\db
logpath = C:\techjunkie\mongodb\mongo-db-server.log
verbose = vvvvv
if the folder dpath folder does not exists in Windows create the folder "db" inside the "mongodb" folder, else the service start will fail
3. Type the following command
mongod -f c:\techjunkie\mongodb\mongo-db-config.conf -install
If you have a log file it will be moved to another log file with time stamped.
4. The MongoDB service is now part of the Windows services
5. Double-click on the "MongoDB" and click on the "Start" button
6. If you receive the error "Windows could not start MongoDB service on Local Computer", then it means the previous shutdown of MongoDB was done improperly.
To resolve this issue do the following:
- Remove the file c:/techjunkie/mongodb/db/mongod.lock
- Repair mongodb with command mongod --repair
- Start the mongoDB service
Note: You can also start and stop the mongoDB service in the command line with the following commands
To Start Type: net start MongoDB
To Stop Type: net stop MongoDB
Similar Posts:
- AngularJS SPA : Installing MongoDB
- AngularJS SPA: Create a MongoDB Configuration File
- MongoDB In-Depth: Installing MongoDB on Linux
- AngularJS SPA: Install RoboMongo GUI for MongoDB
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeletevé máy bay đi Mỹ hạng thương gia
chuyen bay tu my ve vietnam
vé máy bay từ canada về việt nam bao nhiêu tiền
vé máy bay từ tokyo vé hà nội
vé máy bay từ hàn về Việt Nam
Vé máy bay từ Đài Loan về Việt Nam
vé máy bay chuyên gia nước ngoài