MongoDB基本操作
来源:互联网 发布:手机考勤表软件 编辑:程序博客网 时间:2024/06/10 02:17
MongoDB安装 - Windows版本
MongoDB官网下载地址
其中Windows版本(2016-08-15)支持以下版本:
- Windows Server 2008 R2 64-bit and later, with SSL support
- Windows Server 2008 R2 64-bit and later, without SSL support
- Windows Vista 32-bit and later, without SSL support
- Windows Server 2008 64-bit and later, without SSL support
本人使用Windows 7 64-bit版本,选择第一个下载
安装过程
安装到用户自定义路径下即可
创建数据目录
根据用户需求,在相应路径下创建文件夹
*本人数据目录的路径为: D:\MongoDB\database*
开启MongoDB服务
添加环境变量
在Path中添加MongoDB的安装路径下的bin文件所在路径
本人MongoDB的bin文件路径为: D:\Program Files\MongoDB\Server\3.2\bin
启动MongoDB服务
mongod.exe --dbpath <MongoDB数据目录路径>例如:mongod.exe --dbpath D:\MongoDB\database
将MongoDB作为Windows服务运行
以管理员方式运行
mongod.exe --bind_ip 127.0.0.1 -logpath "D:\MongoDB\database" --logappend --dbpath "D:\MongoDB\log\mongodb.log" --port 27017 --serviceName "EnvMongoDB" --serviceDisplayName "EnvironmentDB" --install
其中具体参数如下
0 0
- mongodb 基本操作
- MongoDB 基本操作语法
- mongodb基本操作
- mongoDB中基本操作
- Mongodb 基本操作
- MongoDB 基本操作尝试
- MongoDB基本操作
- MongoDB数据表基本操作
- MongoDB 基本操作
- MongoDB 基本操作
- MongoDB数据表基本操作
- mongodb基本操作
- mongodb+java基本操作
- MongoDB 基本操作
- mongodb 的基本操作
- MongoDB 常用基本操作
- MongoDB -- 基本操作
- MongoDB基本操作
- setOnItemClickListener ()和setClickListener ()不同
- atoi函数实现的各种考虑因素
- JZOJ[8.15比赛]题解
- 杭电oj 1232 NYOJ 5198 畅通工程(并查集)
- Centos Git Update
- MongoDB基本操作
- WING
- Python调试与异常
- 二进制异或的特性
- 剑指offer面试题 java解答46-50
- 网易笔试题:混合颜料
- unresolved symbol @__security_check_cookie 解决办法
- 剑指offer 矩阵中的路径
- LA 3458——Bridge