---
title: MongoDB
layout: page
tags:
  - services
  - databases
  - mongodb
categories:
  - databases
---
MongoDB **2.6.1** runs on the default port and doesn't require any credentials.

If you want to use version 2.4 of MongoDB you can download and run it with code like the following. Please keep in mind, that this version of MongoDB is then running on a different port, which you explicitly have to specify via the command line parameter.

```bash
# Change the path to the downloaded file here to update the mongo version
wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.10.tgz
tar xvzf mongo*
cd mongo*
mkdir ~/mongodb

# You can change the parameters mongodb starts with here
nohup bash -c "./bin/mongod --port 27018 --dbpath ~/mongodb 2>&1 &" && sleep 6; cat nohup.out
cd ~/clone
```

---
title: MongoDB
layout: page
tags:
  - services
  - databases
  - mongodb
categories:
  - databases
---
MongoDB **2.6.4** runs on the default port and doesn't require any credentials.

If you need to test against another version of MongoDB, see the [MongoDB script](https://github.com/codeship/scripts/blob/master/packages/mongodb.sh) on the [codeship/scripts](https://github.com/codeship/scripts) GitHub repository.

Simply set the `MONGODB_VERSION` environment variable and include the script via the following command in your setup steps.

```shell
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/mongodb.sh | bash -s
```

This will start a MongoDB server on port `27018`. (You can change the port via the `MONGODB_PORT` environment variable, if you want to.)

Update article on running a custom MongoDB versison
Update article on running a custom MongoDB versison
