# 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>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.pentestwiki.com/post-exploit/protocols/21017.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
