mongodb ½© ½ÇÇ๮Á¦.

   Á¶È¸ 1663   Ãßõ 0    

쪽팔리면 질문하지 맙시다. 소중한 답변 댓글을 삭제하는건 부끄러운 일 입니다 

오전에 우분투를 밀고, 몽고도 다시 올리고, 디비도 다시 복구했는데, 몽고db 쉘이 실행이 안되네요. 가물가물한 기억으로 지난번에도 쉘이 실행이 안되어 비밀번호를 계정없이 사용한 기억이 나는 듯합니다. 분명 다른 pc에서 compass를 통한 접속이 되고 서비스가 돌아가는 것도 확인이 되는데 mongo(쉘)만 찾을 수 없다는 것으로 보아 경로 문제인듯한데, 짧은 검색 실력으로는 마땅한 답을 얻지 못했습니다.

우분투22에 설치한 경우 어디에서 mongo를 찾아야 할까요? 쪽팔려도 질문 드립니다. ㅎㅎ

ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.
¿¹Àü¿¡ Ubuntu¿¡ ±ò¾Ò¾ú´Ù°¡ resource¸¦ ¸¹ÀÌ ¸Ô°í ÀÖ´Â °ÍÀ» ¹ß°ßÇÏ°í Áö¿ü¾ú´ø °Í °°½À´Ï´Ù.
µ¿ÀÏ Àåºñ¿¡ ´Ù½Ã ±ò¾Æº¸´Ï... "sudo apt install mongodb"
client´Â mongoÀÌ°í¿ä. /usr/bin¾Æ·¡¿¡ ±ò¸³´Ï´Ù.
     
ÀÌâÁØ 2023-06
°¨»çÇÕ´Ï´Ù.
¼³Ä¡´Â Àß µÇ¾ú´Âµ¥, mongo¸¸ Á¢¼ÓÀÌ ¾ÈµÇ³×¿ä. path¹®Á¦ÀεíÇѵ¥, ¸®´ª½º ±î¸·´«À̶ó path¼³Á¤ÀÌ ¾î·Æ³×¿ä.
Á˼ÛÇÕ´Ï´Ù. À߸ø ¾Ë·Áµå·È³×¿ä.

mongosh·Î ÇØ º¸½Ã°Ú¾î¿ä?

¾Æ±î ȸ»ç¿¡¼­ Ubuntu 20.04¿¡¼­ ÇØ ºÃ´ø °ÍÀÌ°í¿ä.
Áý¿¡¼­ Ubuntu 22.04¿¡´Â ±âº» repository¿¡ ¾ø±º¿ä.
ÀÌ·±µ¥¼­ (https://www.mongodb.com/community/forums/t/how-to-install-mongodb-6-0-on-ubuntu-22-04/176976) ½ÃÅ°´Â´ë·Î ±ò¾ÆºÃ´õ´Ï... shellÀÌ mongo°¡ ¾Æ´Ï±º¿ä.
mongosh·Î ¹Ù²î¾ú³ª º¾´Ï´Ù.

~$ which mongosh
/usr/bin/mongosh

¼­ºñ½º¸¦ ¾È ¿Ã¸° »óÅ¿¡¼­´Â
~$ mongosh
Current Mongosh Log ID: 6481b72916de8987f699e271
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.9.1
MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017

¼­ºñ½º¸¦ ¿Ã¸®´Ï...
$ mongosh
Current Mongosh Log ID: 6481b8af49481884e78f59b1
Connecting to: mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+1.9.1
Using MongoDB: 6.0.6
Using Mongosh: 1.9.1

For mongosh info see: https://docs.mongodb.com/mongodb-shell/


To help improve our products, anonymous usage data is collected and sent to MongoDB periodically (https://www.mongodb.com/legal/privacy-policy).
You can opt-out by running the disableTelemetry() command.

------
  The server generated these startup warnings when booting
  2023-06-08T20:16:55.215+09:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem
  2023-06-08T20:16:55.742+09:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted
  2023-06-08T20:16:55.743+09:00: vm.max_map_count is too low
------

test>
     
ÀÌâÁØ 2023-06
¿ÀÈ£! µË´Ï´Ù. °Ë»öÀº ÁË´Ù mongo·Î Á¢¼ÓÇ϶ó°í ÇÏ´Ï. ¤¾¤¾
´öºÐ¿¡ ´ÙÀ½ ¹ß°ÉÀ½ÀÌ °¡´ÉÇÏ°Ô µÇ¾ú½À´Ï´Ù. °¨»çÇÕ´Ï´Ù~


QnA
Á¦¸ñPage 325/5663
2015-12   1429710   ¹é¸Þ°¡
2014-05   4890744   Á¤ÀºÁØ1
2022-05   1608   ±¸Â÷´Ï
2023-12   1608   LPYY
2020-11   1608   ¸Ó¶óÄ«´Âµ¥
2022-10   1608   everess
2023-07   1608   »ö°õ
04-16   1608   galaxyfamily
2023-08   1608   kty9906
05-14   1609   Á¤¹«Çö
2021-07   1609   û»çÃÊ·Õ
2022-06   1609   Elusive4245
2023-07   1609   Á¤¹«Çö
02-15   1609   ¸ÚÁøi
2023-12   1609   ¹«½î»Ôó·³
2022-06   1609   ¹Ì½ºÆ¼
2021-05   1609   ÀÎõIº£¸®
2023-08   1609   ¼ö¼ö¾Ç¸¶
2022-07   1609   ¶ÊÀ̶ó¿ä
2022-01   1609   jack33
2023-11   1610   alth52261
2023-04   1610   ±è¿µ±â