Home > Database > Mysql Tutorial > 快速安装mongodb

快速安装mongodb

WBOY
Release: 2016-06-07 14:53:25
Original
1364 people have browsed it

快速安装mongodb 1,下载: http://www.mongodb.org/ mongodb-linux-x86_64-2.2.0.tgz 2,解压:tar zxvf mongodb-linux-x86_64-2.2.0.tgz 3,设置数据目录,日志文件: mkdir -p /data/mongodb/db cd /data/mongodb/ touch log www.2cto.com 4,启动服务: ./mon


快速安装mongodb

 

1,下载:   http://www.mongodb.org/ mongodb-linux-x86_64-2.2.0.tgz 

2,解压:tar zxvf mongodb-linux-x86_64-2.2.0.tgz 
 

3,设置数据目录,日志文件:

mkdir -p /data/mongodb/db

cd /data/mongodb/

touch log

  www.2cto.com  

4,启动服务:

./mongod --dbpath=/data/mongodb/db --port 27017 --logpath /data/mongodb/log --logappend --fork

 

5,测试:

./mongo

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template