![]() I just encountered the same issue on my windows 7 machine. Check at the URL to verify that MongoDB returns stats.Open ComponentServices, click on "Services (Local)", and find the MongoDB service.Save the changes to the registry and exit the registry editor. Open the registry editor (regedit.exe), go to HKEY_LOCAL_MACHINE → SYSTEM → CurrentControlSet → Services.įind the MongoDB key and set the "ImagePath" value to: C:\mongodb165\bin\mongod -service -rest -master -logpath=C:\mongodb165\logs\mongolog.txt -dbpath=C:\mongodb165\data Change the directory to "C:\mongodb165\bin".Įxecute the following command: mongod -install -rest –master –logpath=C:\mongodb165\logs\mongolog.txt.Add a log file name "mongolog.txt" at "C:\mongodb165\logs\mongolog.txt".Add "data" and "logs" subdirectories under the "C:\mongodb165" directory.Download MongoDB and extract it to the C:\ drive.I used the information from "Install MongoDB Service on Windows 7", pushed on Webiyo to correct the registered service arguments: If you did not specify absolute file paths for the data directory, or the log directory, you will get the same Windows error, but no log file. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |