《OD大数据实战》MongoDB环境搭建
一、MongonDB环境搭建
1. 下载
https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.0.6.tgz
2. 解压
tar -zxvf mongodb-linux-x86_64-3.0.6.tgz -C /opt/modules
3. 创建目录
mkdir -p /opt/modules/mongodb-linux-x86_64-3.0.6/data/db
4. 启动
bin/mongod --dbpath /opt/modules/mongodb-linux-x86_64-3.0.6/data/db --rest
后台启动
nohup bin/mongod --dbpath /opt/modules/mongodb-linux-x86_64-3.0.6/data/db --rest >~/mongodb-start.log 2>&1 &
nohup bin/mongod --config bin/mongodb.conf >~/mongodb-start.log 2>&1 &
5. 参考博客
4) http://www.runoob.com/mongodb/mongodb-tutorial.html
二、Shell命令
![]() |
作者:沙漏哟 出处:计算机的未来在于连接 本文版权归作者和博客园共有,欢迎转载,请留下原文链接 微信随缘扩列,聊创业聊产品,偶尔搞搞技术 |