mongodb ½© ½ÇÇ๮Á¦.

   Á¶È¸ 2161   Ãßõ 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 479/5702
2015-12   1650529   ¹é¸Þ°¡
2014-05   5114991   Á¤ÀºÁØ1
2022-07   2160   È£¹Ú°í±¸¸¶
2022-05   2160   ±¹»ê¸Á°í
2023-01   2160   Àü¼³¼ÓÀǹ̡¦
2024-03   2161   ¹«¾Æ
2023-03   2161   GoverZG
2023-01   2161   ¹¹µçÆȾƿä
2021-10   2161   ±èȲÁß
2020-02   2161   ĵÀ§µå
2023-06   2161   ¼­¿ï°­ºÏ¹Ì¡¦
2020-01   2161   ºñºñBB
2024-02   2161   Èñ¿î
2022-07   2162   Wnahd
2021-10   2162   À̵濵
2021-10   2162   fLog
2024-03   2162   ¾î²Ù±â
2023-06   2162   audacity
2023-10   2162   VSPress
2021-08   2162   ¼¼À̱º
2023-05   2162   Uinx
2024-01   2162   osthek83