When i try to install mongodb as a windows service using the following command:
c:\wamp\bin\mongodb\bin>mongod --bind_ip 127.0.0.1 --logpath c:\wamp\bin\mongodb \logs --logappend --dbpath c:\wamp\bin\mongodb\data --directoryperdb --install
it says that my service has been installed successfully and to use the command "net start 'MongoDB'" to start the service
so when i type the command:
"net start MongoDB"
I receive this error:
"System error 193 has occurred.
* is not a valid Win32 application."
I have a 32bit laptop running windows 7 32bit OS and i made sure i installed the mongodb 1.6.5 32bit version
The interesting part is that i can start mongo server through command line running the command "mongod.exe" and use "mongo.exe" to perform queries.
However, trying to run it as a service i get a windows error.
Any help?