SlideShare a Scribd company logo
1 of 1
You can manually install 2.6.0 as a service on Windows from an Administrator cmd prompt.
Assuming you have installed MongoDB using the MSI installer, the default path will be
C:Program FilesMongoDB 2.6 Standard. If you have installed in an alternative directory
you will need to adjust the paths as appropriate.
Steps to install:
1) Open an Administrator command prompt
● Windows 7 / Vista / Server 2008 (and R2)
○ Press Win + R, then type "cmd", then press Ctrl + Shift + Enter.
● Windows 8 / 8.1
○ Press Win + X, then press A.
2. Make directories for your database and log files
mkdir c:mongodbdatadb
mkdir c: mongodb datalog
3. Create a configuration file. This file can include any of the configuration options for mongod,
but at a minimum must include a valid setting for logpath:
echo logpath=c:mongodbdatalogmongod.log> "C:Program
FilesMongoDBmongod.cfg"
echo dbpath=c:mongodbdatadb>> "C:Program FilesMongoDBmongod.cfg
ongod.cfg"
4. Create the MongoDB service
>sc.exe create MongoDB binPath= ""C:Program FilesMongoDBbinmongod.exe"
--service --config="C:Program FilesMongoDBmongod.cfg"" DisplayName=
"MongoDB 2.6 Standard" start= "auto" Note that sc.exe requires a space between "=" and
the configuration values (eg "binPath= "), and a "" to escape double quotes.
If this works you should see:
[SC] CreateService SUCCESS
5. Start the MongoDB service:
net start MongoDB
If successful you should be able to connect using the mongo shell. If the service did not start
successfully, the log file should contain information to help you troubleshoot.

More Related Content

What's hot

Get expertise with mongo db
Get expertise with mongo dbGet expertise with mongo db
Get expertise with mongo dbAmit Thakkar
 
Mongodb tutorial by Rajendra Arora
Mongodb tutorial by Rajendra AroraMongodb tutorial by Rajendra Arora
Mongodb tutorial by Rajendra AroraRajendra Arora
 
Log MongoDB slow query
Log MongoDB slow queryLog MongoDB slow query
Log MongoDB slow queryHadi Ariawan
 
MongoDB 3.2 - a giant leap. What’s new?
MongoDB 3.2 - a giant leap. What’s new?MongoDB 3.2 - a giant leap. What’s new?
MongoDB 3.2 - a giant leap. What’s new?Binary Studio
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for BeginnersEnoch Joshua
 
Mongodb introduction and_internal(simple)
Mongodb introduction and_internal(simple)Mongodb introduction and_internal(simple)
Mongodb introduction and_internal(simple)Kai Zhao
 
Java Development with MongoDB (James Williams)
Java Development with MongoDB (James Williams)Java Development with MongoDB (James Williams)
Java Development with MongoDB (James Williams)MongoSF
 
Using MongoDB With Groovy
Using MongoDB With GroovyUsing MongoDB With Groovy
Using MongoDB With GroovyJames Williams
 
The Basics of MongoDB
The Basics of MongoDBThe Basics of MongoDB
The Basics of MongoDBvaluebound
 
Approach explaination
Approach explainationApproach explaination
Approach explainationTejalNijai
 
Mdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchMdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchDaniel M. Farrell
 

What's hot (20)

Get expertise with mongo db
Get expertise with mongo dbGet expertise with mongo db
Get expertise with mongo db
 
Mongo db basics
Mongo db basicsMongo db basics
Mongo db basics
 
Mongodb tutorial by Rajendra Arora
Mongodb tutorial by Rajendra AroraMongodb tutorial by Rajendra Arora
Mongodb tutorial by Rajendra Arora
 
Log MongoDB slow query
Log MongoDB slow queryLog MongoDB slow query
Log MongoDB slow query
 
Mongo db
Mongo dbMongo db
Mongo db
 
MongoDB 3.2 - a giant leap. What’s new?
MongoDB 3.2 - a giant leap. What’s new?MongoDB 3.2 - a giant leap. What’s new?
MongoDB 3.2 - a giant leap. What’s new?
 
Mongo db1
Mongo db1Mongo db1
Mongo db1
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for Beginners
 
Mongodb introduction and_internal(simple)
Mongodb introduction and_internal(simple)Mongodb introduction and_internal(simple)
Mongodb introduction and_internal(simple)
 
Java Development with MongoDB (James Williams)
Java Development with MongoDB (James Williams)Java Development with MongoDB (James Williams)
Java Development with MongoDB (James Williams)
 
Using MongoDB With Groovy
Using MongoDB With GroovyUsing MongoDB With Groovy
Using MongoDB With Groovy
 
Mongo db workshop # 01
Mongo db workshop # 01Mongo db workshop # 01
Mongo db workshop # 01
 
Introduction to mongo db
Introduction to mongo dbIntroduction to mongo db
Introduction to mongo db
 
MongoDB Basics Unileon
MongoDB Basics UnileonMongoDB Basics Unileon
MongoDB Basics Unileon
 
The Basics of MongoDB
The Basics of MongoDBThe Basics of MongoDB
The Basics of MongoDB
 
Approach explaination
Approach explainationApproach explaination
Approach explaination
 
Odoo Basic Admin.
Odoo Basic Admin.Odoo Basic Admin.
Odoo Basic Admin.
 
MongoDB 101
MongoDB 101MongoDB 101
MongoDB 101
 
Mdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchMdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_search
 
Mongo DB Presentation
Mongo DB PresentationMongo DB Presentation
Mongo DB Presentation
 

Viewers also liked

PUBLISHED_House Committee on Natural Resources Interim Report 2013
PUBLISHED_House Committee on Natural Resources Interim Report 2013PUBLISHED_House Committee on Natural Resources Interim Report 2013
PUBLISHED_House Committee on Natural Resources Interim Report 2013Elizabeth Fazio
 
Our houses and school: Darío and Ángel
Our houses and school: Darío and ÁngelOur houses and school: Darío and Ángel
Our houses and school: Darío and ÁngelMariana Morales
 
TechWell Accelerating Software Delivery with Continuous Integration feat. Dan...
TechWell Accelerating Software Delivery with Continuous Integration feat. Dan...TechWell Accelerating Software Delivery with Continuous Integration feat. Dan...
TechWell Accelerating Software Delivery with Continuous Integration feat. Dan...SOASTA
 
PMISSC_Outreach Committee Overview rev 11 2015
PMISSC_Outreach Committee Overview  rev 11 2015PMISSC_Outreach Committee Overview  rev 11 2015
PMISSC_Outreach Committee Overview rev 11 2015PMI Silver Spring
 
Webinar: New Features in CloudTest & TouchTest
Webinar: New Features in CloudTest & TouchTestWebinar: New Features in CloudTest & TouchTest
Webinar: New Features in CloudTest & TouchTestSOASTA
 
Proceso administracionpsl
Proceso administracionpslProceso administracionpsl
Proceso administracionpsljohannaAC
 
Fase Pruebas
Fase PruebasFase Pruebas
Fase PruebasjohannaAC
 
Cómo utilizar slideshare
Cómo utilizar slideshareCómo utilizar slideshare
Cómo utilizar slideshareLilianfabianna
 

Viewers also liked (12)

161109 jornada eficiència associació congost
161109 jornada eficiència associació congost161109 jornada eficiència associació congost
161109 jornada eficiència associació congost
 
PUBLISHED_House Committee on Natural Resources Interim Report 2013
PUBLISHED_House Committee on Natural Resources Interim Report 2013PUBLISHED_House Committee on Natural Resources Interim Report 2013
PUBLISHED_House Committee on Natural Resources Interim Report 2013
 
Our houses and school: Darío and Ángel
Our houses and school: Darío and ÁngelOur houses and school: Darío and Ángel
Our houses and school: Darío and Ángel
 
TechWell Accelerating Software Delivery with Continuous Integration feat. Dan...
TechWell Accelerating Software Delivery with Continuous Integration feat. Dan...TechWell Accelerating Software Delivery with Continuous Integration feat. Dan...
TechWell Accelerating Software Delivery with Continuous Integration feat. Dan...
 
Patricia and the nature
Patricia and the naturePatricia and the nature
Patricia and the nature
 
Rías Baixas | zonas ZEPA
Rías Baixas | zonas ZEPARías Baixas | zonas ZEPA
Rías Baixas | zonas ZEPA
 
PMISSC_Outreach Committee Overview rev 11 2015
PMISSC_Outreach Committee Overview  rev 11 2015PMISSC_Outreach Committee Overview  rev 11 2015
PMISSC_Outreach Committee Overview rev 11 2015
 
Webinar: New Features in CloudTest & TouchTest
Webinar: New Features in CloudTest & TouchTestWebinar: New Features in CloudTest & TouchTest
Webinar: New Features in CloudTest & TouchTest
 
Proceso administracionpsl
Proceso administracionpslProceso administracionpsl
Proceso administracionpsl
 
Fase Pruebas
Fase PruebasFase Pruebas
Fase Pruebas
 
Puntos clave para la correcta elecceción de un Operador Logístico Internacion...
Puntos clave para la correcta elecceción de un Operador Logístico Internacion...Puntos clave para la correcta elecceción de un Operador Logístico Internacion...
Puntos clave para la correcta elecceción de un Operador Logístico Internacion...
 
Cómo utilizar slideshare
Cómo utilizar slideshareCómo utilizar slideshare
Cómo utilizar slideshare
 

Similar to Mongo db installation procedure for win 7

mago3D workshop(English) in Thailand , 2018.07
mago3D workshop(English) in Thailand , 2018.07mago3D workshop(English) in Thailand , 2018.07
mago3D workshop(English) in Thailand , 2018.07Gaia3D,Inc.
 
mago3D Technical Workshop Material(New Version)
mago3D Technical Workshop Material(New Version)mago3D Technical Workshop Material(New Version)
mago3D Technical Workshop Material(New Version)SANGHEE SHIN
 
Quick & Dirty & MEAN
Quick & Dirty & MEANQuick & Dirty & MEAN
Quick & Dirty & MEANTroy Miles
 
Webinar slides: How to Secure MongoDB with ClusterControl
Webinar slides: How to Secure MongoDB with ClusterControlWebinar slides: How to Secure MongoDB with ClusterControl
Webinar slides: How to Secure MongoDB with ClusterControlSeveralnines
 
Android Logging System
Android Logging SystemAndroid Logging System
Android Logging SystemWilliam Lee
 
AUTODESK DOCS_SYSTEM REQUIREMENTS, FILE TYPES, TOOL LIMITATION.pptx
AUTODESK DOCS_SYSTEM REQUIREMENTS, FILE TYPES, TOOL LIMITATION.pptxAUTODESK DOCS_SYSTEM REQUIREMENTS, FILE TYPES, TOOL LIMITATION.pptx
AUTODESK DOCS_SYSTEM REQUIREMENTS, FILE TYPES, TOOL LIMITATION.pptxinnocomfindyourself
 
mago3D Technical Workshop Material
mago3D Technical Workshop Material mago3D Technical Workshop Material
mago3D Technical Workshop Material SANGHEE SHIN
 
Building “old” Windows drivers (XP, Vista, 2003 and 2008) with Visual Studio ...
Building “old” Windows drivers (XP, Vista, 2003 and 2008) with Visual Studio ...Building “old” Windows drivers (XP, Vista, 2003 and 2008) with Visual Studio ...
Building “old” Windows drivers (XP, Vista, 2003 and 2008) with Visual Studio ...Yan Vugenfirer
 
Malware analysis
Malware analysisMalware analysis
Malware analysisDen Iir
 
MongoDB Workshop Universidad de Huelva
MongoDB Workshop Universidad de HuelvaMongoDB Workshop Universidad de Huelva
MongoDB Workshop Universidad de HuelvaJuan Antonio Roy Couto
 
Windows containers troubleshooting
Windows containers troubleshootingWindows containers troubleshooting
Windows containers troubleshootingAlexey Bokov
 
Building Your First App with Shawn Mcarthy
Building Your First App with Shawn Mcarthy Building Your First App with Shawn Mcarthy
Building Your First App with Shawn Mcarthy MongoDB
 
Install Oracle 12c Golden Gate On Oracle Linux
Install Oracle 12c Golden Gate On Oracle LinuxInstall Oracle 12c Golden Gate On Oracle Linux
Install Oracle 12c Golden Gate On Oracle LinuxArun Sharma
 
Notes Browser Clients, Client Upgrades und beste Startzeiten! (SP25) - 42. DNUG
Notes Browser Clients, Client Upgrades und beste Startzeiten! (SP25) - 42. DNUGNotes Browser Clients, Client Upgrades und beste Startzeiten! (SP25) - 42. DNUG
Notes Browser Clients, Client Upgrades und beste Startzeiten! (SP25) - 42. DNUGpanagenda
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 

Similar to Mongo db installation procedure for win 7 (20)

mago3D workshop(English) in Thailand , 2018.07
mago3D workshop(English) in Thailand , 2018.07mago3D workshop(English) in Thailand , 2018.07
mago3D workshop(English) in Thailand , 2018.07
 
Readme1st
Readme1stReadme1st
Readme1st
 
mago3D Technical Workshop Material(New Version)
mago3D Technical Workshop Material(New Version)mago3D Technical Workshop Material(New Version)
mago3D Technical Workshop Material(New Version)
 
Mongo db report
Mongo db reportMongo db report
Mongo db report
 
Quick & Dirty & MEAN
Quick & Dirty & MEANQuick & Dirty & MEAN
Quick & Dirty & MEAN
 
Webinar slides: How to Secure MongoDB with ClusterControl
Webinar slides: How to Secure MongoDB with ClusterControlWebinar slides: How to Secure MongoDB with ClusterControl
Webinar slides: How to Secure MongoDB with ClusterControl
 
fast_bitcoin_data_mining
fast_bitcoin_data_miningfast_bitcoin_data_mining
fast_bitcoin_data_mining
 
Android Logging System
Android Logging SystemAndroid Logging System
Android Logging System
 
AUTODESK DOCS_SYSTEM REQUIREMENTS, FILE TYPES, TOOL LIMITATION.pptx
AUTODESK DOCS_SYSTEM REQUIREMENTS, FILE TYPES, TOOL LIMITATION.pptxAUTODESK DOCS_SYSTEM REQUIREMENTS, FILE TYPES, TOOL LIMITATION.pptx
AUTODESK DOCS_SYSTEM REQUIREMENTS, FILE TYPES, TOOL LIMITATION.pptx
 
mago3D Technical Workshop Material
mago3D Technical Workshop Material mago3D Technical Workshop Material
mago3D Technical Workshop Material
 
Building “old” Windows drivers (XP, Vista, 2003 and 2008) with Visual Studio ...
Building “old” Windows drivers (XP, Vista, 2003 and 2008) with Visual Studio ...Building “old” Windows drivers (XP, Vista, 2003 and 2008) with Visual Studio ...
Building “old” Windows drivers (XP, Vista, 2003 and 2008) with Visual Studio ...
 
Malware analysis
Malware analysisMalware analysis
Malware analysis
 
MongoDB Workshop Universidad de Huelva
MongoDB Workshop Universidad de HuelvaMongoDB Workshop Universidad de Huelva
MongoDB Workshop Universidad de Huelva
 
Windows containers troubleshooting
Windows containers troubleshootingWindows containers troubleshooting
Windows containers troubleshooting
 
Introduction to mongodb
Introduction to mongodbIntroduction to mongodb
Introduction to mongodb
 
Building Your First App with Shawn Mcarthy
Building Your First App with Shawn Mcarthy Building Your First App with Shawn Mcarthy
Building Your First App with Shawn Mcarthy
 
Install Oracle 12c Golden Gate On Oracle Linux
Install Oracle 12c Golden Gate On Oracle LinuxInstall Oracle 12c Golden Gate On Oracle Linux
Install Oracle 12c Golden Gate On Oracle Linux
 
Notes Browser Clients, Client Upgrades und beste Startzeiten! (SP25) - 42. DNUG
Notes Browser Clients, Client Upgrades und beste Startzeiten! (SP25) - 42. DNUGNotes Browser Clients, Client Upgrades und beste Startzeiten! (SP25) - 42. DNUG
Notes Browser Clients, Client Upgrades und beste Startzeiten! (SP25) - 42. DNUG
 
WannaCry emulation report
WannaCry emulation reportWannaCry emulation report
WannaCry emulation report
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 

Mongo db installation procedure for win 7

  • 1. You can manually install 2.6.0 as a service on Windows from an Administrator cmd prompt. Assuming you have installed MongoDB using the MSI installer, the default path will be C:Program FilesMongoDB 2.6 Standard. If you have installed in an alternative directory you will need to adjust the paths as appropriate. Steps to install: 1) Open an Administrator command prompt ● Windows 7 / Vista / Server 2008 (and R2) ○ Press Win + R, then type "cmd", then press Ctrl + Shift + Enter. ● Windows 8 / 8.1 ○ Press Win + X, then press A. 2. Make directories for your database and log files mkdir c:mongodbdatadb mkdir c: mongodb datalog 3. Create a configuration file. This file can include any of the configuration options for mongod, but at a minimum must include a valid setting for logpath: echo logpath=c:mongodbdatalogmongod.log> "C:Program FilesMongoDBmongod.cfg" echo dbpath=c:mongodbdatadb>> "C:Program FilesMongoDBmongod.cfg ongod.cfg" 4. Create the MongoDB service >sc.exe create MongoDB binPath= ""C:Program FilesMongoDBbinmongod.exe" --service --config="C:Program FilesMongoDBmongod.cfg"" DisplayName= "MongoDB 2.6 Standard" start= "auto" Note that sc.exe requires a space between "=" and the configuration values (eg "binPath= "), and a "" to escape double quotes. If this works you should see: [SC] CreateService SUCCESS 5. Start the MongoDB service: net start MongoDB If successful you should be able to connect using the mongo shell. If the service did not start successfully, the log file should contain information to help you troubleshoot.