博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【MongoDB】Configure a Windows Service for MongoDB
阅读量:4169 次
发布时间:2019-05-26

本文共 890 字,大约阅读时间需要 2 分钟。

In this blog, I will mainly attach great importantance to how to create a windows service for mongodb. The method described in the next is referred from the official website of mongodb. 

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/

  • First of all, create the folder and files that need to store db and log. if you forgot, you could view the above the blog. In my local machine,
  • create a configuration file 
create  a configuration file, this file can include any of the configuration options for mongod, but must include a valid setting for logpath. we can learn from the next picture that echo command promart. 
  • create the mongodb service. use the following command. and use command ’net start mongodb ‘ to start the service. 
in the meantime, we could use anther way to start service. 
  • use the command { net stop mongoDB} to stop this server or in the above service window.

你可能感兴趣的文章
工作流审批平台-审批功能
查看>>
商务智能-基本方法-特征与角度
查看>>
软件项目管理系统-项目管理-模块定义-开发笔记
查看>>
工作流审批平台-业务申请-申请书一览
查看>>
商务智能-基本方法-数据钻取
查看>>
C++程序员技术需求规划(发展方向)
查看>>
嵌入式100题(017):malloc的底层实现
查看>>
嵌入式100题(018):在1G内存的计算机中能否malloc(1.2G)?为什么?
查看>>
嵌入式100题(019):指针与引用的相同和区别;如何相互转换?
查看>>
嵌入式100题(040):什么是三次握手
查看>>
嵌入式100题(037):Http1.1和Http1.0的区别
查看>>
嵌入式100题(038):HTTPS与HTTP的一些区别
查看>>
嵌入式100题(042):为什么服务端易受到SYN攻击?
查看>>
嵌入式100题(043):什么是四次挥手
查看>>
嵌入式100题(044):为什么客户端最后还要等待2MSL?
查看>>
嵌入式100题(045):为什么建立连接是三次握手,关闭连接确是四次挥手呢?...
查看>>
嵌入式100题(028):static的用法(定义和用途)
查看>>
嵌入式100题(027):char和int之间的转换
查看>>
嵌入式100题(029):const常量和#define的区别(编译阶段、安全性、内存占用等)...
查看>>
嵌入式100题(030):volatile作用和用法
查看>>