---
title: "NOSQL之Mongodb安装"
author: "275553385"
date: "2014-01-13T15:37:52Z"
tags: []
categories: ["开源软件"]
slug: "nosql-mongodb"
draft: false
lastmod: "2014-01-13T15:37:52Z"
id: 2003383
url: "https://0001111.iteye.com/blog/2003383"
---

```本地运行环境：
Linux wxseio-web 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
```
下载Momgodb 64位安装程序<http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.9.tgz>
1) 、下载mongodb-linux-x86_64-2.4.9.tgz到/usr/local/下

```java
tar xvf mongodb-linux-x86_64-2.4.9.tgz
mv mongodb-linux-x86_64-2.4.9.tgz  mongodb
cd mongodb 

```


```添加配置文件 /usr/local/mongodb/config/mongodb27017.conf 
port = 27017
logpath = /data/mongodb/27017/mongodb.log
logappend = true
fork = true
dbpath = /data/mongodb/27017
journal = true
replSet = true
rest = true
oplogSize = 64
```


```启动mongodb
/usr/local/mongodb/bin/mongod -f  /usr/local/mongodb/config/mongodb27017.conf
```