mogodb 安装非常简单,直接解压就可以了.
1. 下载
MongoDB 官网上下载 mongodb-Linux-x86_64-ubuntu1604-3.2.8.tgz
2. 解压
解压命令:
tar -zxvf mongodb-linux-x86_64-ubuntu1604-3.2.8.tgz
3. 创建目录结构
log: 用于保存mongodb产生的日志
data: 用于保存mongodb 数据库文件
bin: 用于保存mongodb 启动,关闭等脚本
conf: 用于保存mongodb 相关配置文件
4. 创建相关脚本
1. 启动脚本