search

Home  >  Q&A  >  body text

There is a problem with the mongodb installation service, please ask for help~

As shown in the picture, when entering the installation service command, no message indicating that the service was successfully created appears. . . How to solve it?

天蓬老师天蓬老师2787 days ago559

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