mongodb - How to run a mongod instance -
i starter of mongodb. according "import example" section of mongodb 3.2 manual, prerequisite importing data database have running mongod instance. limited background knowledge of mongodb, failed understand line of instruction. please give me explanation on how run mongod instance step step in mac terminal? thanks.
here several steps start mongodb var mongod
- created
./bin/data/dbdirectory storing mongodb data file. - start 1 terminal
mongodb server go
mongo/bin, , execute command./mongodstart terminal
mongodb shellgo
mongo/bin, , run./mongonow can connect mongodb now, more command
show dbs,show collections,use dbname, more commands in mongodb, referdb.help()...
Comments
Post a Comment