Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install MongoDB as service on Windows 8.1

Tags:

mongodb

I am running Windows 8.1 64 bit, MongoDb 2.6.0, I am running as administrator

This is the command I am running:

c:\mongo\bin\mongod.exe --logpath "C:\mongo\logs\server.log" --dbpath "C:\mongo\data\db" --install

This is the error I receive, note that this error appears in the log file!

--install has to be used with --logpath

I've read these, and tried the suggestions from these other questions to no avail install mongodb on window 8 How to set MongoDB as a windows service

like image 617
schmidlop Avatar asked Apr 09 '14 17:04

schmidlop


People also ask

Does MongoDB support Windows 8.1 64bit?

there is 64bit version, a 32bit version and a legacy version (vista, server 2003) - they are nicely explained on this page.

What is install MongoDB as a service?

Running MongoDB as a network service means that your service will have permission to access the network with the same credentials as the computer you are using. Running MongoDB locally will run the service without network connectivity.(Refer Source here)


1 Answers

It's a bug. It has been fixed 2 hours ago but will be part of 2.6.1. See Jira Issue here

As a workaround you can install 2.4.9 as Windows Service and then replace the files with 2.6 with a simple copy & paste

like image 62
Ivan Fioravanti Avatar answered Sep 19 '22 00:09

Ivan Fioravanti