MongoDB 3 + Windows 7 X64安装及配置
注册windows服务,使MongoDB自动启动
1、使用系统管理员运行cmd
C:\Users\admin> d:
C:\Users\admin> cd "mongodb的安装目录"
D:\Program Files\MongoDB\Server\3.0\bin> sc.exe create MongoDB binPath= "\"D:\Program Files\MongoDB\Server\3.0\bin\mongod.exe\" --service --httpinterface --logpath \"D:\Program Files\MongoDB\Logs\MongoDB.log\" --logappend --dbpath \"D:\Program Files\MongoDB\Data\"" DisplayName= "MongoDB" start= "auto"
2、推荐使用配置文件来安装服务
(http://docs.mongodb.org/manual/reference/configuration-options/#core-options)
D:\Program Files\MongoDB\Server\3.0\bin>
sc.exe create MongoDB binPath= "\"D:\Program Files\MongoDB\Server\3.0\bin\mongod.exe\" --service --config \"D:\Program Files\MongoDB\Server\3.0\bin\mongodb.conf\"" DisplayName= "MongoDB" start= "auto"
配置:
#数据库存储配置
storage:
#数据库文件保存的路径
dbPath: "D:\\Program Files\\MongoDB\\Data"
#系统日志配置
systemLog:
destination: file
#日志路径
path: "D:\\Program Files\\MongoDB\\Logs\\MongoDB.log"
#日志文件自动累加,而不是覆盖
logAppend: true
#
net:
#绑定的ip, 如果有多个ip使用前后不带空格的“,”分隔
bindIp: 127.0.0.1
#代表端口号,如果不指定则默认为 27017
port: 27017
#
http:
#是否启动监控网页
enabled: true
# 开启简单的rest API
RESTInterfaceEnabled: true
注意:配置区分大小写,子配置需要向后缩进3个字符
3、备注:删除服务 sc delete mongodb
安装监控(windows server 2008 r2)

MongoDB 3 + Windows 7 X64安装及配置的更多相关文章
- (转)plsql11 x64 安装和配置 解决OCI: not initialized
跟帖子一样,安装了pl/sql ,设置了oci.dll 以及 TNS_ADMIN,加入path后不能显示数据库连接. 安装 microsoft visual c++ redistributable 2 ...
- windows下手动安装和配置xamarin
安装xamarin xamarin官方给出了两种安装方式,自动安装和手动安装. 自动安装比较简单,到http://xamarin.com/download下载xamarininstaller.exe ...
- Windows下pry安装和配置
Windows下pry安装和配置 pry是一个增强型的交互式命令行工具,比irb强大. 有自动完成功能,自动缩进,有颜色.有更强大的调试功能. pry 安装很简单. 在终端输入: gem instal ...
- windows下redis安装和配置
windows下redis安装和配置 redis介绍 Redis是一个开源,高级的键值存储和一个适用的解决方案,用于构建高性能,可扩展的Web应用程序. Redis有三个主要特点,使它优越于其它键值数 ...
- 在Windows平台下安装与配置Memcached及C#使用方法
1.在Windows下安装Memcached 资料来源:http://www.jb51.net/article/30334.htm 在Windows平台下安装与配置Memcached的方法,Memca ...
- solr在windows下的安装及配置
solr在windows下的安装及配置 首先,solr是基于Java开发的,所以使用的话需要先进行java环境的配置,在Java环境配置好之后就可以去http://www.apache.org/dyn ...
- Lua在Windows下的安装、配置、运行
Lua在Windows下的安装.配置.运行 本文链接:https://blog.csdn.net/ChinarCSDN/article/details/78667262 展开 # Windows下安装 ...
- Windows mysql免安装版配置。(版本号-5.6.45);
Windows mysql免安装版配置.(版本号-5.6.45); 来自对 https://blog.csdn.net/weixin_42831477/article/details/81325691 ...
- MongoDB 在 windows 下的安装与服务配置
本文转载地址: https://blog.csdn.net/Dorma_Bin/article/details/80851230 本地安装及网页测试 在官网下载最新的安装文件 下载地址 : https ...
随机推荐
- Linux命令 find和mv的结合使用:查找文件,移动到某个目录
显示前十个文件 [root@localhost smgpbi]# ls -1 | sort -u | head -10 1.首先查看文件个数,进入所在的文件 # find . -name " ...
- C#中List的Find方法的使用
查找List中的某个值,可以使用循环遍历对比,查找出结果.C#中提供了Find方法,可以直接使用,只要查找条件传入就可.如下: public class RecordInfo { private st ...
- php文件删除unlink()详解
请记住从PHP文件创建的教训,我们创建了一个文件,名为testFile.txt . $myFile = "testFile.txt"; $fh = fopen($myFile, ' ...
- OC基础(18)
Category基本概念 Category注意事项 *:first-child { margin-top: 0 !important; } body > *:last-child { margi ...
- 为什么要使用Spark?
现有的hadoop生态系统中存在的问题 1)使用mapreduce进行批量离线分析: 2)使用hive进行历史数据的分析: 3)使用hbase进行实时数据的查询: 4)使用storm进行实时的流处理: ...
- The 2013 ACM-ICPC Asia Changsha Regional Contest - J
Josephina and RPG Time Limit: 2 Seconds Memory Limit: 65536 KB Special Judge A role-playin ...
- The Ninth Hunan Collegiate Programming Contest (2013) Problem L
Problem L Last Blood In many programming contests, special prizes are given to teams who solved a pa ...
- C与Lua互相调用的时候,栈变化分析
1 C调用Lua函数的堆栈变化 例子 Lua文件中的函数 function testNewCounter2() return "第四个结果" end C中的例子 void t_n ...
- OpenGL ES学习笔记(一)——基本用法、绘制流程与着色器编译
首先声明下,本文为笔者学习<OpenGL ES应用开发实践指南(Android卷)>的笔记,涉及的代码均出自原书,如有需要,请到原书指定源码地址下载. 在Android.iOS等移动平台上 ...
- AD采样问题总结
说明:来源http://bbs.csdn.net/topics/390899032论坛讨论 一个100HZ的正弦波,我用300HZ的采样率去采样,那么根据香农定律是不是一秒钟就采集到300个点,因为这 ...