Windows 8 Installation MongoDB
1. Download the installation package
Http://www.veryhuo.com/down/html/mongodb.html
2. Unzip to the D:/mongodb directory.
3. Add the D:/mongodb/bin to the path of the system environment variable.
4. Open cmd as Administrator and type the following command:
Mongod--dbpath d:/mongodb/data Note: Create the Data folder within the D:\mongodb folder first
After execution is complete. Open http://localhost:27017 in the browser
It looks like you is trying to access MongoDB over HTTP on the native driver port. Installation is complete.
5. If you need to run the database as a service. Close the Command Prompt window. Re-open a new cmd type command
Mongod--logpath D:\MongoDB\logs\MongoDB.log--logappend--dbpath D:\MongoDB\data--directoryperdb--servicename MongoDB--install
Log file: D:\MongoDB\logs\MongoDB.log
Data file directory: D:\MongoDB\data, and the parameter--directoryperdb indicates that each DB will create a new directory
Name of the Windows service: MongoDB
Open the Service List Discovery Service has been installed successfully.
After installation, the following is said in the C # code operation MongoDB.
MongoDB Installation (i)