> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/post-exploit/protocols/21017.md).

# 21017

MongoDB는 2009년 개발된 NoSQL 기반 데이터베이스입니다.

<pre class="language-bash"><code class="lang-bash"><strong># MongoDB cli 설치
</strong>wget https://downloads.mongodb.com/compass/mongosh-2.1.1-linux-x64.tgz
tar xzf mongosh-2.1.1-linux-x64.tgz
sudo mv mongosh-2.1.1-linux-x64 /opt/mongosh
sudo ln -s /opt/mongosh /usr/local/mongosh

<strong># MongoDB 접속 및 스키마 획득
</strong>mongosh --host '&#x3C;mongodb address>' --port 21017
show dbs
use '&#x3C;db-name>'
show tables

<strong># 데이터 추출
</strong>db.'&#x3C;collection>'.find()
</code></pre>
