1901;팔리면 1656;문Ȣ16;1648; 맙시다. 소1473;한 NJ13;변 댓글1012; 삭1228;Ȣ16;lj16;,148; ǥ12;-124;러운 1068; 1077;니다160;
오1204;에 우ǥ16;투를 0128;고, 몽고도 다시 올리고, 디비도 다시 복구했lj16;데, 몽고db 쉘1060; 실행1060; 안.104;네요. 가물가물한 기Ǻ13;1004;/196; 1648;DŽ12;번에도 쉘1060; 실행1060; 안.104;Ǻ12; 비0128;번호를 계1221;없1060; 사용한 기Ǻ13;1060; 나lj16; Ǐ19;합니다. ǥ16;명 다른 pc에서 compass를 통한 1217;속1060; .104;고 서비스가 돌아가lj16; ,163;도 확1064;1060; .104;lj16;데 mongo(쉘)만 찾1012; 수 없다lj16; ,163;1004;/196; 보아 ᅆ1;/196; 문1228;1064;Ǐ19;한데, 1687;1008; ,160;색 실/141;1004;/196;lj16; 마땅한 NJ13;1012; Ǻ19;1648; 못했습니다.
우ǥ16;투22에 설치한 ᅆ1;우 Ǻ12;디에서 mongo를 찾아야 할까요? 1901;팔/140;도 1656;문 드립니다. 12622;12622;
µ¿ÀÏ Àåºñ¿¡ ´Ù½Ã ±ò¾Æº¸´Ï... "sudo apt install mongodb"
client´Â mongoÀÌ°í¿ä. /usr/bin¾Æ·¡¿¡ ±ò¸³´Ï´Ù.
¼³Ä¡´Â Àß µÇ¾ú´Âµ¥, 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>
´öºÐ¿¡ ´ÙÀ½ ¹ß°ÉÀ½ÀÌ °¡´ÉÇÏ°Ô µÇ¾ú½À´Ï´Ù. °¨»çÇÕ´Ï´Ù~