1、下载MongoDB1.61文件

2、解压在D:或C:,我配置时解压在D:

3、重命文件夹为MongoDB

4、在MongoDB文件夹下新建两个目录,Data和Logs目录,然后在Log目录下添加一个空的log.txt文件。

5、运行bin目录下的命令,安装为一个windows服务

格式:mongod --bind_ip 127.0.0.1 --logpath c:\MongoDB\logs\log.txt --logappend --dbpath c:\MongoDB\data --directoryperdb --install

 

相关文章:

  • 2022-01-05
  • 2021-10-05
  • 2021-05-18
  • 2021-07-11
  • 2021-12-16
  • 2021-08-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-06
  • 2021-11-26
  • 2021-12-02
  • 2021-12-05
相关资源
相似解决方案