美文网首页
无标题文章

无标题文章

作者: deek | 来源:发表于2017-09-24 18:00 被阅读0次

第一次尝试着写博客,一是为了做个笔记一边以后查询,再者练习下markdown

mangodb安装

下载mogonodb

-下载地址https://www.mongodb.com/download-center#community
-由于电脑是64位的就下载了64位的mongodb

安装mongodb

-跟着提示一步步安装,默认目录是C:\Program Files\MongoDB

运行mongodb

搭建mongodb运行环境

-mongodb需要一个目录来存储所有数据,默认目录\data\db
-可以运行安装目录下的bin文件夹下的mongod.exe,通过--dbpath选项来制定数据文件的路径,如下

mongodb --dbpath D:\mongodb\data

连接mongodb

-可以运行安装目录下的bin文件夹下的mongo.exe

设置mongodb服务

-设置为windows服务,开机启动就不用每次启动了

mongod --install --serviceName "MongoDB"

设置mongodb日志文件路径

-在D:\mongodb\data下新建文件夹log(存放日志文件)并且新建文件mongodb.log
-设置logpath(如同dbpath)

mongod --logpath D:\mongodb\data\log\mongodb.log

相关文章

  • 无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章 无标题文章无标题文章无标题文章无...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • fasfsdfdf

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标...

  • 无标题文章

    无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章无标题文章

  • 无标题文章

    无标题文章 无标题文章 无标题文章无标题文章 无标题文章 无标题文章

网友评论

      本文标题:无标题文章

      本文链接:https://www.haomeiwen.com/subject/tkzkextx.html