I have installed MongoDB on my Window 7(64 bit) machine. I have created the path data/db too but when I tried to start mongodb using the command 'C:\mongodb\bin\mongod.exe'
, it is not starting. It is showing admin web console waiting for connections on port 28017
. Help me in getting start the MongoDB. And also please suggest if any GUI available for MongoDB. Thanks in advance.
相关问题
- MongoDB can not create unique sparse index (duplic
- Spring Data MongoDB - lazy access to some fields
- Golang mongodb aggregation
- How to convert from Timestamp to Mongo ObjectID
- MongoDB Indexing: Multiple single-field vs single
相关文章
- mongodb有没有什么办法禁止读取数据的时候进行缓存
- mongodb-aggregate聚合查询分组后如何获得多字段
- mongodb error: how do I make sure that your journa
- How to track MongoDB requests from a console appli
- MongoError: cannot infer query fields to set, path
- Pymongo $in Query Not Working
- django.core.exceptions.ImproperlyConfigured: '
- How to represent an array with mixed types
Actually windows way to use service, from the official documentation:
Find out where is your executable is installed, path may be like this:
"C:\Program Files\MongoDB\Server\3.4\bin\mongod.exe"
Create config file with such content (yaml format), path may be like this:
"C:\Program Files\MongoDB\Server\3.4\mongod.cfg"
Where paths is reduced with dots, see above.
The key
--install
say to mongo to install itself as windows service.Now you can start, stop, restart mongo server as usual windows service choose your favorite way from this:
Control Panel
->Administration
->Services
->MongoDB
net start MongoDB
)Check log file specified in config file if any problems.
Step 1
Download the mongodb
Step 2
Step 3
C:\data\db
Step 4
cd
toC:\Program Files\MongoDB\Server\3.2\bin>
mongod
27017
Step 5
Step 6
localhost:27017
Your mongodb is started and connected with RoboMongo - a third party GUI tool
This worked for me
Create MongoDB Service in Windows. First Open cmd with administrator
After that
Start Service
Stop Service
there are 2 ways start mongoDB Install location ( ex : C:/ )
first of all : copy mongoDB install folder into C:/ location then changed name to "mongodb" or something what u want. here is ex with "mongodb" name
1 : setup mongoDB is an windows service
2: a small .BAT file to start mongoDB without install copy and paste to notepad and save file with filetype ".bat" here is it :
if you getting error 1078 or 1087 lets remove all data in C:/data/db and restart mongoDB ( copy old data to new folder and back it up after restart mongoDB )
3 . GUI for mongoDB
i'm using rockmongo
have fun with it
Installing MongoDB on Windows is a bit tricky compared to other Executable files... Got a good reference after long search I got Installing MongoDB in Windows
After Installing open command prompt and type "mongod", then keep the window minimized and open another command prompt window and type "mongo" and you will find the success message of connecting to the test database.
hope it helps