<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/tag/mongodb">
  <channel>
    <title>MongoDB</title>
    <link>https://www.linuxjournal.com/tag/mongodb</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>Using Django and MongoDB to Build a Blog</title>
  <link>https://www.linuxjournal.com/content/using-django-and-mongodb-build-blog</link>
  <description>  &lt;div data-history-node-id="1330082" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-field-node-image field--type-image field--label-hidden field--item"&gt;  &lt;img src="https://www.linuxjournal.com/sites/default/files/nodeimage/story/11569f1.jpg" width="354" height="168" alt="" typeof="foaf:Image" class="img-responsive" /&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/mihalis-tsoukalos" lang="" about="https://www.linuxjournal.com/users/mihalis-tsoukalos" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Mihalis Tsoukalos&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
This article shows how to create a simple blog site using the
MongoDB Document Database and the Django Web framework.
&lt;/p&gt;

&lt;h3&gt;Mongo Basics&lt;/h3&gt;

&lt;p&gt;
MongoDB is an open-source document-oriented database, not a traditional
relational database, written in C++ by Dwight Merriman and Eliot
Horowitz. Being a document database does not mean storing Microsoft Word
documents, but rather it means storing semi-structured data. You can input arbitrary
binary JSON objects (BSON) into a MongoDB database. It runs on UNIX
machines as well as Windows and supports replication and sharding.
&lt;/p&gt;

&lt;p&gt;
Your Linux distribution probably includes a MongoDB package, so go
ahead an install it if you have not done so already. Alternatively,
you can download a precompiled binary or get the MongoDB source code
from &lt;a href="http://www.mongodb.org"&gt;http://www.mongodb.org&lt;/a&gt; and compile it yourself.
&lt;/p&gt;

&lt;p&gt;
On a Debian 7 system, you can install MongoDB with the following command:

&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
# apt-get install mongodb
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
After installing MongoDB, start the MongoDB server process with:

&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
# service mongodb start
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
Similarly, you can stop the running MongoDB server with:

&lt;/p&gt;&lt;pre&gt;&lt;code&gt;
# service mongodb stop
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;
After installation, type &lt;code&gt;mongo --version&lt;/code&gt; in your
UNIX shell to find the MongoDB version you are using, and type
&lt;code&gt;mongo&lt;/code&gt; to enter the MongoDB shell and check whether the
MongoDB server process is running.
&lt;/p&gt;

&lt;p&gt;
By default, the MongoDB server process listens to localhost using the 27017
port. You can change it if you want, but if both the MongoDB server and the
Django installation are on the same machine, it is more secure to leave it
as it is.
&lt;/p&gt;

&lt;p&gt;
The configuration file for MongoDB is /etc/mongodb.conf. Nevertheless, if
you want to run multiple MongoDB servers on the same UNIX machine, you can
bypass the /etc/mongodb.conf file and utilize command-line options that
allow you to use a different port number, a different IP or even a
different MongoDB configuration file.
&lt;/p&gt;

&lt;img src="http://www.linuxjournal.com/files/linuxjournal.com/ufiles/imagecache/medium-350px-centered/u1002061/11569f1.jpg" alt="" title="" class="imagecache-medium-350px-centered" /&gt;&lt;p&gt;
Figure 1. MongoDB Terminology
&lt;/p&gt;

&lt;p&gt;
Figure 1 shows the most useful MongoDB terms in relation to their
respective SQL terms.
&lt;/p&gt;

&lt;p&gt;
Starting the MongoDB server process (mongod) on a Linux machine without any
parameters and without root privileges should generate output similar to
the following:

&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/using-django-and-mongodb-build-blog" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Wed, 05 Mar 2014 20:38:13 +0000</pubDate>
    <dc:creator>Mihalis Tsoukalos</dc:creator>
    <guid isPermaLink="false">1330082 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
