【MongoDB】Configure a Windows Service for MongoDB

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.
时间: 2024-08-24 19:53:31

【MongoDB】Configure a Windows Service for MongoDB的相关文章

【HDOJ】2487 Ugly Windows

暴力解. 1 #include <cstdio> 2 #include <cstring> 3 4 #define MAXN 105 5 6 char map[MAXN][MAXN]; 7 char visit[27]; 8 int n, m; 9 10 bool check(char c) { 11 int i, j; 12 int x1=MAXN, y1=MAXN, x2=-1, y2=-1; 13 14 for (i=0; i<n; ++i) { 15 for (j=0

烂泥:【解决】word复制windows live writer没有图片

本文由51cto.com提供友情赞助,首发于烂泥行天下. 在使用windows live writer发表博客,博客先是在是word2013中进行编辑,编辑完毕后我会复制到windows live writer中,然后发表出去. 使用了几年都没有问题,就是最近这个月出现.word复制到live writer中,只有文字而没有图片. 以前都是没有问题的,复制的时候会直接把图片复制到live writer中. 后来经过单独测试,即使是从word复制一张图片到windows live writer中,

【Android】验证码倒计时(Service完成,页面切换不中断)

[Android]验证码倒计时(Service完成,页面切换不中断) Service+CountDownTimer+Handler完成倒计时功能,页面切换不中断. 下载地址:http://www.devstore.cn/code/info/598.html

【Python】如何在Windows操作系统下安装Python和Networkx

Networkx是一套基于Python的多种网络构造库.因为之前没有学过Python,因此一点点上手,这一篇讲一讲如何在Windows环境下安装Python2.7和Networkx. 首先要澄清一下,如果是想深入系统学习Python的同学,还是尽早换Linux系统,因为Windows底下的库安装非常麻烦:而Linux底下只需要运行命令行(Terminal): sudo apt-get install python-matplotlib 就可以了. 由于仅仅是使用Networkx构造数据的关系,以

【J2SE】java仿windows记事本

基于J2SE实现的一个记事本程序. 运行程序截图: 工程目录结构: 程序代码: package com.hblg; import java.awt.BorderLayout; import java.awt.FileDialog; import java.awt.Font; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.aw

【Android】揭秘如何利用Service与线程制造安卓后台通知栏推送

安卓设备的后台通知栏推送很烦,主要是可以通过利用安卓的Service功能,在app被点击Home键或者返回键之后,依旧可以在挂载后台运行.反正Home键或者返回键只能杀死Activity而不能终结Service的,不像Windows点关闭键默认是关闭程序界面+程序线程. 本文的意义相当于在Windows中制造一条线程,或者是对Windows应用程序的关闭键进行重写,让其应用程序的关闭仅仅是隐藏界面,不杀死进程. 理论上,只要这个Service不被安卓系统因内存不足所回收,会一直持续到设备重启,或

【Git】GitHub for Windows使用(3) GitHub Flow的使用

第三章了,关于GitHub上有一个Pull Request,是展示本项目或资源所有的Pull 请求的. 而这个开发流程是基于GitHub Flow的开发模式. 网上关于GitHub Flow简单的介绍有很多,但是本人去看了一圈又一圈,愣是没有看懂这个到底是个什么玩意.只是看到GitHub Flow相关的文章中总在Pull Request功能中来回操作. 于是自己去对pull request操作了一遍,才返回头来写这篇文章的开头.此时才终于搞明白, 原来GitHub Flow其实就是一种开发模式,

【数据库】Mean web开发 02-Windows下Mongodb安装配置及常用客户端管理工具

简介 Mean是JavaScript的全栈开发框架.更多介绍 用MongoDB实现持久数据的存储是Mean Web全栈开发中的一部分. MongoDB是一个介于关系数据库和非关系数据库之间的产品,是非关系数据库当中功能最丰富,最像关系数据库的.它的特点是高性能.易部署.易使用,存储数据非常方便. MongoDB的学习资料可参考: MongoDB中文社区 MongoDB 下载及安装 下载地址:https://www.mongodb.com/download-center#community 根据你

MongoDB笔记1:Windows下安装MongoDB

Windows下安装MongoDB非常简单.若是32位的操作系统,要安装32位的MongoDB:若是64位的系统,要安装64位的MongoDB. 这里以64位为例.具体步骤为: 一.下载MongoDB最新或较新版,这里下的是 mongodb-win32-x86_64-2008plus-ssl-3.2.0-signed.msi 二.安装 1 双击mongodb-win32-x86_64-2008plus-ssl-3.2.0-signed.msi,启动安装向导界面.选"Next"按纽 2