> For the complete documentation index, see [llms.txt](https://koonkim.gitbook.io/mongodb/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://koonkim.gitbook.io/mongodb/master/undefined/replication/setup/runing-servers.md).

# Running Servers

기존에 Single node 기반의 MongoDB를 이용할 때 사용하던 Mongo Deamon인 `mongod`를 이용하여 mongo를 작동시킨다.&#x20;

만약, 여러대의 컴퓨터에 나눠서 동작시키는 독자가 있다면, 아래의 명령어들은 각각 다른 컴퓨터에서 실행되어야 할 것이다.

{% hint style="info" %}
mongod의 --config option은 configuration file의 path이다. 이전 절에서 작성한 configuration file 의 path를 기입해주면 된다.
{% endhint %}

```bash
$ mongod --config /path/to/mongodb/replica-set/primary/mongod.conf
$ mongod --config /path/to/mongodb/replica-set/secondary-1/mongod.conf
$ mongod --config /path/to/mongodb/replica-set/secondary-2/mongod.conf
```
