An open API service indexing awesome lists of open source software.

https://github.com/zoltan-nz/mongodb-excercise

SWEN 432 - Advance Databases assignments
https://github.com/zoltan-nz/mongodb-excercise

Last synced: 3 months ago
JSON representation

SWEN 432 - Advance Databases assignments

Awesome Lists containing this project

README

          

# MongoDB Excercise

Setup MongoDB environment

```
$ brew install mongodb@2.6
$ mkdir ./db
$ mongod --config ./mongod.conf
```

`./mongod.conf`

```
systemLog:
destination: file
path: ./mongo.log
logAppend: true
storage:
dbPath: ./db
net:
bindIp: 127.0.0.1
```

Creating cluster

```
$ mongod --configsvr --config ./mongod.conf
$ mongos --port 27017 --configdb 127.0.0.1:27019 --chunkSize 1
```