configure port
mongod --dbpath C:\Users\eyup\Downloads\mongodata --port 27017
configure log file for database
mongod --dbpath C:\Users\eyup\Downloads\mongodata --port 27017 --logpath C:\Users\eyup\Downloads\mongodata\logs\mongodb.log
run mongodb with configuration file.syntax problems with command prompt experienced
mongod -f C:\Users\eyup\Downloads\mongodata\config\mongodb.cfg
mongod -f "C:\Users\eyup\Downloads\mongodata\config\mongodb.cfg"
mongod --config "C:\Users\eyup\Downloads\mongodata\config\mongodb.cfg"
mongod --config C:\Users\eyup\Downloads\mongodata\config
mongod.exe --config C:\Users\eyup\Downloads\mongodata\config\mongodb.conf
mongod.exe -f C:\Users\eyup\Downloads\mongodata\config\mongodb.conf
No comments:
Post a Comment