์•„๋ž˜ ๋งํฌ๋กœ ๋“ค์–ด๊ฐ€์„œ ์˜ค๋ฅธ์ชฝ ํ•˜๋‹จ์˜ Download ๋ฒ„ํŠผ์„ ํด๋ฆญํ•˜์—ฌ tgz ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ ๋ฐ›์•„ ์••์ถ•์„ ํ’€๋ฉด ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋œ๋‹ค.

 

๋ชฝ๊ณ DB ์ปค๋ฎค๋‹ˆํ‹ฐ ์„œ๋ฒ„ ์ตœ์‹ ๋ฒ„์ „ ๋‹ค์šด๋กœ๋“œ

 

 

๋ชฝ๊ณ ๋””๋น„ ์ตœ์‹ ๋ฒ„์ „์€ ์ž๋ฐ”๋ฒ„์ „ 8 ์ด์ƒ์ด๋ฉด ์‚ฌ์šฉ๊ฐ€๋Šฅํ•˜๋‹ค.

์ถ”๊ฐ€์ ์ธ ํ˜ธํ™˜์„ฑ ์—ฌ๋ถ€๋Š” ๋ชฝ๊ณ DB ๊ณต์‹์‚ฌ์ดํŠธ์—์„œ ํ™•์ธ๊ฐ€๋Šฅํ•˜๋‹ค.

ํ˜„์žฌ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ๋Š” ์ž๋ฐ” ๋ฒ„์ „์ด 8์ด ์•„๋‹ˆ๋ผ๋ฉด ์—…๊ทธ๋ ˆ์ด๋“œ๊ฐ€ ํ•„์š”ํ•˜๋‹ค.

๋ชฝ๊ณ DB ๋“œ๋ผ์ด๋ฒ„ ํ˜ธํ™˜์„ฑ ์—ฌ๋ถ€
๋ชฝ๊ณ DB ์ž๋ฐ”๋ฒ„์ „ ํ˜ธํ™˜์„ฑ ์—ฌ๋ถ€


๋ชฝ๊ณ DB์„œ๋ฒ„ ์‹คํ–‰ํ•˜๊ธฐ ๊ณต์‹๋ฌธ์„œ๋ฅผ ๋ณด๊ณ  ๋”ฐ๋ผํ•˜๋ฉด๋˜๋Š”๋ฐ ๊ทธ๋Œ€๋กœ ๋”ฐ๋ผํ•˜๋ฉด ์ค‘๊ฐ„์— ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค.

์•„๋ž˜ ๋ช…๋ น์–ด๋ฅผ ๋ณด๊ณ  ์‹คํ–‰ํ•˜๋˜ ๊ฒฝ๋กœ๋Š” ๋ณธ์ธ์˜ ์ž…๋ง›์— ๋งž๊ฒŒ ๋ณ€๊ฒฝํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

keichee:BlogApp KH$ sudo mkdir -p /usr/local/mongodb/data-v4.4
Password:
keichee:BlogApp KH$ sudo mkdir -p /usr/local/mongodb/log
keichee:BlogApp KH$ sudo chown KH /usr/local/mongodb/*
keichee:BlogApp KH$ touch /usr/local/mongodb/log/mongo.log

-- ๋ชฝ๊ณ db bin ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ --
keichee:bin KH$ ./mongod --dbpath /usr/local/mongodb/data-v4.4 --logpath /usr/local/mongodb/log/mongo.log --fork
about to fork child process, waiting until server is ready for connections.
forked process: 38133
child process started successfully, parent exiting
keichee:bin KH$ 

 

์ด์ œ ์„œ๋ฒ„๋Š” ์ •์ƒ์ ์œผ๋กœ ๊ธฐ๋™์ด ๋˜์—ˆ๊ณ , ์‹ค์ œ๋กœ ์ ‘์†ํ•ด์„œ ๋ช…๋ น์–ด๋ฅผ ์ž…๋ ฅํ•˜๋ ค๋ฉด mongo ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

keichee:bin KH$ ./mongo
MongoDB shell version v4.4.2
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("b8192555-a975-457e-ab16-2b2c7675c72a") }
MongoDB server version: 4.4.2
---
The server generated these startup warnings when booting: 
        2020-11-22T08:12:57.220+09:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
        2020-11-22T08:12:57.221+09:00: This server is bound to localhost. Remote systems will be unable to connect to this server. Start the server with --bind_ip <address> to specify which IP addresses it should serve responses from, or with --bind_ip_all to bind to all interfaces. If this behavior is desired, start the server with --bind_ip 127.0.0.1 to disable this warning
        2020-11-22T08:12:57.221+09:00: Soft rlimits too low
        2020-11-22T08:12:57.221+09:00:         currentValue: 10240
        2020-11-22T08:12:57.221+09:00:         recommendedMinimum: 64000
---
---
        Enable MongoDB's free cloud-based monitoring service, which will then receive and display
        metrics about your deployment (disk utilization, CPU, operation statistics, etc).

        The monitoring data will be available on a MongoDB website with a unique URL accessible to you
        and anyone you share the URL with. MongoDB may use this information to make product
        improvements and to suggest MongoDB products and deployment options to you.

        To enable free monitoring, run the following command: db.enableFreeMonitoring()
        To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
---
>