Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>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.</p> <p>I used the information from <a href="https://web.archive.org/web/20150708121239/http://www.webiyo.com/2011/02/install-mongodb-service-on-windows-7.html" rel="nofollow noreferrer">"Install MongoDB Service on Windows 7", pushed on Webiyo</a> to correct the registered service arguments:</p> <ol> <li>Download MongoDB and extract it to the C:\ drive.</li> <li>Add "data" and "logs" subdirectories under the "C:\mongodb165" directory.</li> <li>Add a log file name "mongolog.txt" at "C:\mongodb165\logs\mongolog.txt".</li> <li>Change the directory to "C:\mongodb165\bin".</li> <li><p>Execute the following command:</p> <pre><code>mongod --install --rest –master –logpath=C:\mongodb165\logs\mongolog.txt </code></pre></li> <li><p>Open the registry editor (regedit.exe), go to HKEY_LOCAL_MACHINE &rarr; SYSTEM &rarr; CurrentControlSet &rarr; Services.</p></li> <li><p>Find the MongoDB key and set the "ImagePath" value to:</p> <pre><code>C:\mongodb165\bin\mongod --service --rest --master --logpath=C:\mongodb165\logs\mongolog.txt --dbpath=C:\mongodb165\data </code></pre></li> <li><p>Save the changes to the registry and exit the registry editor.</p></li> <li>Open ComponentServices, click on "Services (Local)", and find the MongoDB service. Start it.</li> <li>Check at the URL <a href="http://localhost:28017/" rel="nofollow noreferrer">http://localhost:28017/</a> to verify that MongoDB returns stats.</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload