search

Home  >  Q&A  >  body text

mongodb安装服务出了问题,求助大虾~

如图,输入安装服务命令并没有出现创建服务成功的信息。。。如何解决?

天蓬老师天蓬老师2757 days ago537

reply all(2)I'll reply

  • 大家讲道理

    大家讲道理2017-05-02 09:27:43

    1. Check for any flaws in the method you are currently using and check the relevant log files;

    2. In addition, try to use the following method (executed as an administrator) to create a service on the Windows operating system:

    sc.exe create MongoDB binPath= "\"D:\MongoDB\Server.4\bin\mongod.exe\" --service --config=\"D:\MongoDB\Server.4\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"
    

    After the creation is completed, you can find that the MongoDB service is included in the service.

    For reference.

    Love MongoDB! Have Fun!

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-02 09:27:43

    See that the error already exists in mongodb.log. Clean it up first. Reinstalling.

    reply
    0
  • Cancelreply