Creaticalmind

mongoDB install with HomeBrew 본문

Database/No-SQL

mongoDB install with HomeBrew

TigerBJ 2017. 10. 31. 23:11

mongoDB install with HomeBrew


Install >homebrew<--------- click and follow step for installing home brew




Install MongoDB with Homebrew


***open new terminal 


B4 we go,


$ brew list


if you find 'mongodb' likes below (never mind the color !! it`s my custom terminal colors)

mongodb

mongodb is already installed in your mac


if you can`t find 'mongodb' things

plz follow next step 


install mongodb with homebrew

$ brew install mongodb


make directory with super power :-)

$ sudo mkdir -p /data/db


give a authorization to you for easy to access the directory

$ sudo chown <username> /data/db


now, let`s initiate very first mongodb server in your mac

$ mongod

it will start mongodb server


***open new terminal


$ mongo

it will makes you connect to mongod server


all done







logout

Saving session...

...copying shared history...

...saving history...truncating history files...

...completed.


[프로세스 완료됨]

'Database > No-SQL' 카테고리의 다른 글

Install MongoDB Community Edition on  (0) 2017.10.31
Comments