当前位置:Gxlcms > 数据库问题 > 将mongodb作为Windows10的系统服务来启动

将mongodb作为Windows10的系统服务来启动

时间:2021-07-01 10:21:17 帮助过:9人阅读

=D:\MongoDB\data\db

5.以管理员的身份运行cmd

技术分享图片

6.在cmd中执行如下命令

Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有权利。

C:\windows\system32>d:

D:\>cd D:\MongoDB\Server\3.4\bin

D:\MongoDB\Server\3.4\bin>mongod --config D:\MongoDB\mongod.cfg --install
2017-12-06T20:14:12.481+0800 I CONTROL  [main] log file "D:\MongoDB\data\log\mongo.log" exists; moved to "D:\MongoDB\data\log\mongo.log.2017-12-06T12-14-12".

  D:\MongoDB\Server\3.4\bin>net start MongoDB
  MongoDB 服务正在启动 ..
  MongoDB 服务已经启动成功。


  D:\MongoDB\Server\3.4\bin>

7.MongoDB成功设置为Windows服务

技术分享图片

 

将mongodb作为Windows10的系统服务来启动

标签:新建   soft   install   moved   png   span   window   2.4   文件中   

人气教程排行