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?
大家讲道理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!
習慣沉默2017-05-02 09:27:43
See that the error already exists in mongodb.log. Clean it up first. Reinstalling.