Novedades del sitio

Install mongoDB (NoSQL) service on Windows

 
Picture of System Administrator
Install mongoDB (NoSQL) service on Windows
by System Administrator - Monday, 27 February 2017, 1:22 PM
Group Colaboradores y Partners

What is NoSQL and Why Should I Care?

NoSQL, or 'Not Only SQL', represents the new class of data management technologies designed to meet the increasing volume, velocity, and variety of data that organizations are storing, processing, and analyzing.

Compared to relational databases, NoSQL databases are more scalable and provide superior performance. NoSQL databases address the opportunities that the relational model does not, including:

  • Large volumes of structured, semi-structured and unstructured data
  • Agile sprints, quick iteration, and frequent code pushes
  • Flexible, easy to use object-oriented programming
  • Efficient, scale-out architecture instead of expensive, monolithic architecture

When considering or evaluating NoSQL solutions, the range of considerations for selecting a database can seem overwhelming. However, we found that there are 5 critical dimensions to consider when selecting the database that is the right for both your application and your business.

Whitepaper | Download Copy

INSTALL MONGODB SERVICE ON WINDOWS 8

by Ricardo SánchezSoftware Engineering | How-ToDevelopment

MongoDB (from “humongous”) is an open-source document database, and the leading NoSQL database. Written in C++.

MongoDB is great for modeling many of the entities that back most modern web-apps, either consumer or enterprise:

  • Account and user profiles: can store arrays of addresses with ease
  • CMS: the flexible schema of MongoDB is great for heterogeneous collections of content types
  • Form data: MongoDB makes it easy to evolve structure of form data over time
  • Blogs / user-generated content: can keep data with complex relationships together in one object
  • Messaging: vary message meta-data easily per message or message type without needing to maintain separate collections or schemas
  • System configuration: just a nice object graph of configuration values, which is very natural in MongoDB
  • Log data of any kind: structured log data is the future
  • Graphs: just objects and pointers – a perfect fit
  • Location based data: MongoDB understands geo-spatial coordinates and natively supports geo-spatial indexing

However, if you are installing it on Windows 8, there is a little problem. In the MongoDB website they offer instructions on how to create a Windows service for MongoDB manually but unfortunately it doesn’t work. If you follow the instructions mentioned here, you’ll soon find out that the service won’t start and you’ll be very frustrated.

Here are the steps that you really need to follow to create a Windows service for MongoDB in Windows 8:

Installing MongoDB on Windows 8

  1. Download and install MongoDB. You can download the 32 or 64-bit version from here.
  2. Make sure you install MongoDB in a folder that you can easily remember, for example: c:\mongodb\
  3. Add directories c:\mongodb\log and c:\mongodb\data
  4. Add log file c:\mongodb\log\mongo.log

Creating a Windows service for MongoDB

  1. Open your command window and type the following:
    cd c:\mongodb\bin\mongod.exe --install --rest -master -logpath=c:\mongodb\log\mongo.log
  2. Open the registry settings, press the Windows key and R at the same time and then type regedit in the Run command window.
  3. Go to HKEY_LOCAL_MACHINE >> SYSTEM >> CurrentControlSet >> services
  4. Find out MongoDB directory & edit ImagePath key
  5. Set key value as:
    C:\mongodb\bin\mongod --service  --rest  --master  --logpath=C:\mongodb\logs\mongo.log  --dbpath=C:\mongodb\data
  6. Save and exit registry editor.
  7. Open Services by pressing the Windows key and R at the same time and then type services.msc in the Run command window and click OK.
  8. Find the MongoDB service and right-click on it, select Properties
  9. Make sure the service is set to start automatically and start the service as shown below.

 

10. Open your browser and go to http://localhost:28017/ to see if MongoDB is running correctly, you should see a page full of MongoDB details.

Link: http://ricardodsanchez.com