Link : https://www.mongodb.com/download-center
Download msi file : Windows Server 2008 R2 64-bit and later,with SSl Support X64
Create folder :C:\mongoDB
After double click on msi file -Accept and Next--select Custonm and browse location c:\mongoDB next------yes
create some folders like
data folder in mongoDB folder
db folder in data folder
log folder in mongoDb
like ---C:\mongoDB\data\db
open Cmd Admin
change dir to C:mongoDB\bin>mongod --directoryperdb --dbpath C:\mongoDB\data\db --logpath C:\mongoDB\log\mongo.log --logappend --rest --install
display msg
----------------
2017-02-17T19:46:56.386+0530 I CONTROL [main] ** WARNING: --rest is specified without --httpinterface,
2017-02-17T19:46:56.389+0530 I CONTROL [main] ** enabling http interface
C:\mongoDB\bin>net start MongoDB
display msg
----------------
The MongoDB service is starting...
The MongoDB service was started successfully.
C:\MongoDB\bin>mongo
db started....................
>
Download msi file : Windows Server 2008 R2 64-bit and later,with SSl Support X64
Create folder :C:\mongoDB
After double click on msi file -Accept and Next--select Custonm and browse location c:\mongoDB next------yes
create some folders like
data folder in mongoDB folder
db folder in data folder
log folder in mongoDb
like ---C:\mongoDB\data\db
open Cmd Admin
change dir to C:mongoDB\bin>mongod --directoryperdb --dbpath C:\mongoDB\data\db --logpath C:\mongoDB\log\mongo.log --logappend --rest --install
display msg
----------------
2017-02-17T19:46:56.386+0530 I CONTROL [main] ** WARNING: --rest is specified without --httpinterface,
2017-02-17T19:46:56.389+0530 I CONTROL [main] ** enabling http interface
C:\mongoDB\bin>net start MongoDB
display msg
----------------
The MongoDB service is starting...
The MongoDB service was started successfully.
C:\MongoDB\bin>mongo
db started....................
>
Comments
Post a Comment