๐Ÿš€ macOS BigSur์— MongoDB ์„ค์น˜ํ•˜๊ธฐ

0.5 ๊ฐœ๋ฐœ์žยท2021๋…„ 2์›” 28์ผ
3

MongoDB

๋ชฉ๋ก ๋ณด๊ธฐ
1/1
post-thumbnail

Mongo Atlas๋ฅผ ํ™œ์šฉํ•˜๋Š”๊ฒƒ๋„ ์ข‹๊ฒ ์ง€๋งŒ... ๋กœ์ปฌ์—์„œ ๊ฐœ๋ฐœ์„ ํ•˜๊ณ  ์‹ถ๋‹ค. ๊ณต์‹ ํ™ˆํŽ˜์ด์ง€์—์„œ tar ball์„ ๋‹ค์šด๋ฐ›์•„ ์„ค์น˜ํ•˜๋Š” ๋ฐฉ๋ฒ•๋„ ์žˆ์ง€๋งŒ, ๊ฐ„ํŽธํ•˜๊ฒŒ brew๋ฅผ ์ด์šฉํ•˜๊ณ ์ž ํ•œ๋‹ค.

1. HomeBrew Tap ๋“ฑ๋ก

brew tap mongodb/brew

2. MongoDB ์„ค์น˜

brew install mongodb-community@4.4

3. ์„œ๋น„์Šค ๋“ฑ๋ก

brew services start mongodb-community@4.4

4. ํ”„๋กœ์„ธ์Šค ํ™•์ธ

ps aux | grep -v grep | grep mongod

5. Mongo shell ์‹คํ–‰

mongo

6. ์ฐธ๊ณ ์‚ฌํ•ญ

- ์„ค์ •ํŒŒ์ผ ์œ„์น˜
/usr/local/etc/mongod.conf

- ๋กœ๊ทธ ๋””๋ ‰ํ„ฐ๋ฆฌ ์œ„์น˜
/usr/local/var/log/mongodb

- ๋ฐ์ดํ„ฐ ์ €์žฅ ์œ„์น˜
/usr/local/var/mongodb

์ถœ์ €: https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/

profile
Node.js ์ข‹์•„

0๊ฐœ์˜ ๋Œ“๊ธ€