<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mongodb Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/mongodb/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sun, 10 Oct 2021 20:33:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install MongoDB on Debian 11</title>
		<link>https://www.osradar.com/how-to-install-mongodb-on-debian-11/</link>
					<comments>https://www.osradar.com/how-to-install-mongodb-on-debian-11/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Wed, 13 Oct 2021 23:31:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bullseye]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=32619</guid>

					<description><![CDATA[<p>Hello, friends. Throughout this post, we will take you to learn how to install MongoDB on Debian 11. MongoDB is the most representative of the databases known as NoSQL, an acronym for Not only SQL. It is document-oriented and multi-platform, which means that we can use it on many different systems. In Mongo DB there [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-on-debian-11/">How to install MongoDB on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. Throughout this post, we will take you to learn how to install MongoDB on Debian 11.</p>



<p><strong>MongoDB is the most representative of the databases known as NoSQL</strong>, an acronym for Not only SQL. It is document-oriented and multi-platform, which means that we can use it on many different systems.</p>



<p>In Mongo DB there are no predefined schemas, the keys and values of a document are of fixed types or sizes, in a document with a fixed schema the tasks to add or delete fields become easier and with great performance.</p>



<p>Data in Mongo DB is stored using BSON format structures, which is a specification similar to JSON so any modern text editor can edit it without any problems.</p>



<p>So MongoDB has positioned itself as one of the most solid alternatives to database managers like <a href="https://www.osradar.com/install-sqlite-database-debian/" target="_blank" rel="noreferrer noopener">SQLite </a>or <a href="https://www.osradar.com/install-mariadb-database-debian/" target="_blank" rel="noreferrer noopener">MariaDB</a>. So, let’s go for it.</p>



<h2 id="install-mongodb-on-debian-11">Install MongoDB on Debian 11</h2>



<p>For this post, we will use the MongoDB repository for Debian 10 which also works for this new Debian version. However, we are still waiting for the MongoDB developers to include Debian 11 in their repositories.</p>



<p>So, open a terminal and update the operating system completely.</p>



<pre class="wp-block-preformatted">sudo apt update
sudo apt upgrade</pre>



<p>Before adding the MongoDB repository to the system, it is necessary to install a package called <code>gnupg2</code>.</p>



<pre class="wp-block-preformatted">sudo apt install gnupg2</pre>



<p>After that, add the GPG key of the repository as follows</p>



<pre class="wp-block-preformatted">wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -</pre>



<p>Now add the MongoDB repository to your system by running</p>



<pre class="wp-block-preformatted">echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list</pre>



<p>Refresh APT to accept the new changes</p>



<pre class="wp-block-preformatted">sudo apt update</pre>



<p>Next, install MongoDB on Debian 11 by running</p>



<pre class="wp-block-preformatted">sudo apt install mongodb-org
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  mongodb-database-tools mongodb-mongosh mongodb-org-database mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shell
  mongodb-org-tools
The following NEW packages will be installed:
  mongodb-database-tools mongodb-mongosh mongodb-org mongodb-org-database mongodb-org-database-tools-extra mongodb-org-mongos mongodb-org-server mongodb-org-shell
  mongodb-org-tools
0 upgraded, 9 newly installed, 0 to remove and 25 not upgraded.
Need to get 147 MB of archives.
After this operation, 464 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>



<p>After that, you can check the installed version using this command</p>



<pre class="wp-block-preformatted">mongod --version</pre>



<p>Output:</p>



<pre class="wp-block-preformatted">db version v5.0.3
Build Info: {
    "version": "5.0.3",
    "gitVersion": "657fea5a61a74d7a79df7aff8e4bcf0bc742b748",
    "openSSLVersion": "OpenSSL 1.1.1k  25 Mar 2021",
    "modules": [],
    "allocator": "tcmalloc",
    "environment": {
        "distmod": "debian10",
        "distarch": "x86_64",
        "target_arch": "x86_64"
    }
}</pre>



<h3 id="managing-the-mongodb-service">Managing the MongoDB service</h3>



<p>Once it is installed, you can manage its service just like any other service on the system.</p>



<p>To start MongoDB you have to run</p>



<pre class="wp-block-preformatted">sudo systemctl start mongod</pre>



<p>It is usually a good idea to make it start with the system so that it is immediately available.</p>



<pre class="wp-block-preformatted">sudo systemctl enable --now mongod
Created symlink /etc/systemd/system/multi-user.target.wants/mongod.service → /lib/systemd/system/mongod.service.</pre>



<p>If you make changes to the MongoDB configuration then you will have to restart it to apply the changes.</p>



<pre class="wp-block-preformatted">sudo systemctl restart mongod</pre>



<p>Finally, it is advisable to check the status of the service to see if everything is OK.</p>



<pre class="wp-block-preformatted">sudo systemctl status mongod
● mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-10-09 18:51:39 CEST; 25s ago
       Docs: https://docs.mongodb.org/manual
   Main PID: 13759 (mongod)
     Memory: 67.3M
        CPU: 1.561s
     CGroup: /system.slice/mongod.service
             └─13759 /usr/bin/mongod --config /etc/mongod.conf

Oct 09 18:51:39 osradar systemd[1]: Started MongoDB Database Server.</pre>



<h3 id="creating-a-new-user-for-mongodb">Creating a new user for MongoDB</h3>



<p>To access the MongoDB shell just run the command command</p>



<pre class="wp-block-preformatted">mongo</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="466" src="https://www.osradar.com/wp-content/uploads/2021/10/1-4-1024x466.png" alt="1.- MongoDB on Debian 11" class="wp-image-32632" srcset="https://www.osradar.com/wp-content/uploads/2021/10/1-4-1024x466.png 1024w, https://www.osradar.com/wp-content/uploads/2021/10/1-4-300x136.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/1-4-768x349.png 768w, https://www.osradar.com/wp-content/uploads/2021/10/1-4-696x316.png 696w, https://www.osradar.com/wp-content/uploads/2021/10/1-4-1068x486.png 1068w, https://www.osradar.com/wp-content/uploads/2021/10/1-4.png 1357w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- MongoDB on Debian 11</figcaption></figure>



<p>And once inside, it is recommended to create a new user different from the root.</p>



<pre class="wp-block-preformatted">use admin
db.createUser(
{
user: "osradar",
pwd: passwordPrompt(),
roles: [ { role: "userAdminAnyDatabase", db: "admin" }, "readWriteAnyDatabase" ]
}
)</pre>



<figure class="wp-block-image size-full"><img loading="lazy" width="741" height="360" src="https://www.osradar.com/wp-content/uploads/2021/10/2-4.png" alt="2.- Creating a new user for MongoDB" class="wp-image-32633" srcset="https://www.osradar.com/wp-content/uploads/2021/10/2-4.png 741w, https://www.osradar.com/wp-content/uploads/2021/10/2-4-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2021/10/2-4-696x338.png 696w" sizes="(max-width: 741px) 100vw, 741px" /><figcaption>2.- Creating a new user for MongoDB</figcaption></figure>



<p>Copy and paste the following but change <code>osradar</code> to the name of the user you want.</p>



<p>Then you will have to define a password that has to be secure.</p>



<h2 id="conclusion">Conclusion</h2>



<p>MongoDB is a tool to take into account if we want to develop applications that do not require a SQL database handler. Being open-source we can use it in many different situations with guaranteed performance and efficiency.</p>



<p><a href="https://www.mongodb.com/" target="_blank" rel="noreferrer noopener">MongoDB website</a></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-on-debian-11/">How to install MongoDB on Debian 11</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-mongodb-on-debian-11/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How install MongoDB on Fedora 34 / 33?</title>
		<link>https://www.osradar.com/install-mongodb-fedora-33/</link>
					<comments>https://www.osradar.com/install-mongodb-fedora-33/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 25 May 2021 03:43:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Programming]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=29133</guid>

					<description><![CDATA[<p>Currently, NoSQL Database managers are being widely used by developers. Since it has many advantages and their projects are the most open source. And MongoDB is one of the most popular managers. So, this article is about how to install MongoDB in Fedora 34 / 33. MongoDB allows your teams to easily organize, use and [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mongodb-fedora-33/">How install MongoDB on Fedora 34 / 33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Currently, NoSQL Database managers are being widely used by developers. Since it has many advantages and their projects are the most open source. And MongoDB is one of the most popular managers. So, this article is about how to install MongoDB in Fedora 34 / 33.</p>



<p><a href="https://www.mongodb.com/">MongoDB</a> allows your teams to easily organize, use and enrich data – in real time, anywhere. MongoDB is a NoSQL and document-oriented database manager. In short, instead of saving the data in the record as the SQL database, it saves them in documents with BSON format which is a binary representation of JSON.</p>



<p>In the world of unrelated SQL database MongoDB is perhaps the most popular, however, it can be used by very different applications that require a semi-structured data collection. On the other hand, its use in transactional systems is not recommended as MongoDB does not support transactions.</p>



<p>That’s why I’m going to teach you how to install MongoDB on the latest stable versions of Fedora, Fedora 34 / 33.</p>



<h2 id="install-mongodb-on-fedora-33"><a href="#install-mongodb-on-fedora-33" name="install-mongodb-on-fedora-33"></a>Install MongoDB on Fedora 33</h2>



<p>It is possible to install MongoDB on Fedora 34 / 33 through the <a href="https://www.osradar.com/installing-rpm-on-ubuntu/" target="_blank" rel="noreferrer noopener">RPM packages</a> that can be downloaded and installed from the project’s website.</p>



<p>However, the most efficient method is to install from the official MongoDB repository which helps to integrate the application with the system.</p>



<p>So, for ease of use, install the nano text editor.</p>



<pre class="wp-block-preformatted">sudo dnf install nano</pre>



<p>And edit a text file to add the MongoDB repository by adding the following content</p>



<pre class="wp-block-preformatted">sudo nano /etc/yum.repos.d/mongodb.repo</pre>



<pre class="wp-block-preformatted">[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="982" height="227" src="https://www.osradar.com/wp-content/uploads/2021/03/6-2.png" alt=" Configuring the MongoDB repository" class="wp-image-30202" srcset="https://www.osradar.com/wp-content/uploads/2021/03/6-2.png 982w, https://www.osradar.com/wp-content/uploads/2021/03/6-2-300x69.png 300w, https://www.osradar.com/wp-content/uploads/2021/03/6-2-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2021/03/6-2-696x161.png 696w" sizes="(max-width: 982px) 100vw, 982px" /><figcaption> Configuring the MongoDB repository</figcaption></figure>



<p>Save the changes and close the text editor.</p>



<p>Now you can install MongoDB on Fedora 34 / 33 by running</p>



<pre class="wp-block-preformatted">sudo dnf install mongodb-org</pre>



<p>After installation, a new service is created for Fedora 34 / 33.</p>



<p>So, refresh the list of system daemons</p>



<pre class="wp-block-preformatted">sudo systemctl daemon-reload</pre>



<p>Now start it up:</p>



<pre class="wp-block-preformatted">sudo systemctl start mongod</pre>



<p>And then check the status of the service</p>



<pre class="wp-block-preformatted">sudo systemctl status mongod
● mongod.service - MongoDB Database Server
      Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
      Active: active (running) since Wed 2021-05-19 23:15:47 CEST; 5s ago
        Docs: https://docs.mongodb.org/manual
     Process: 2212 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
     Process: 2213 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
     Process: 2214 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
     Process: 2215 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=0/SUCCESS)
    Main PID: 2217 (mongod)
      Memory: 57.6M
         CPU: 822ms
      CGroup: /system.slice/mongod.service
              └─2217 /usr/bin/mongod -f /etc/mongod.conf
 May 19 23:15:46 osradar systemd[1]: Starting MongoDB Database Server…
 May 19 23:15:46 osradar mongod[2215]: about to fork child process, waiting until server is ready for connections.
 May 19 23:15:46 osradar mongod[2217]: forked process: 2217
 May 19 23:15:47 osradar mongod[2215]: child process started successfully, parent exiting
 May 19 23:15:47 osradar systemd[1]: Started MongoDB Database Server.
</pre>



<p>Now check the version of MongoDB that you have installed</p>



<pre class="wp-block-preformatted">mongod -version
db version v4.4.4
 Build Info: {
     "version": "4.4.4",
     "gitVersion": "8db30a63db1a9d84bdcad0c83369623f708e0397",
     "openSSLVersion": "OpenSSL 1.1.1k  FIPS 25 Mar 2021",
     "modules": [],
     "allocator": "tcmalloc",
     "environment": {
         "distmod": "rhel80",
         "distarch": "x86_64",
         "target_arch": "x86_64"
     }
 }</pre>



<p>So, enjoy it.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>So, MongoDB is a solution that is increasingly being taken into account by many developers worldwide. Its installation in Fedora 34 / 33 is relatively simple.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mongodb-fedora-33/">How install MongoDB on Fedora 34 / 33?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mongodb-fedora-33/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>DbGate: The Smartest (no)SQL Database Client</title>
		<link>https://www.osradar.com/dbgate-database-client/</link>
					<comments>https://www.osradar.com/dbgate-database-client/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 23 May 2021 23:07:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[SQL]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=30187</guid>

					<description><![CDATA[<p>Hello, friends. We already know that developers or people who are in charge of a database, require professional clients to facilitate their task. So, in this post, we will introduce you to DbGate which is another client that supports many database managers. DbGate is a modern database management client that works with both SQL drivers [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/dbgate-database-client/">DbGate: The Smartest (no)SQL Database Client</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hello, friends. We already know that developers or people who are in charge of a database, require professional clients to facilitate their task. So, in this post, we will introduce you to DbGate which is another client that supports many database managers.</p>



<p><a href="https://dbgate.org">DbGate</a> is a modern database management client that works with both SQL drivers such as MariaDB, MySQL; and with NoSQL such as MongoDB.</p>



<p>We are talking about a Free and open-source application that has been released under the MIT license. This makes that you can use it in many projects of diverse nature.</p>



<p>Another aspect to take into account with DbGate is that it is cross-platform. This means that we can use it on Windows, macOS, and of course Linux. Quite useful to improve possible migrations between operating systems. If you come from Windows, you can also use this application.</p>



<p>With DbGate you can easily:</p>



<ul><li>Connect to multiple databases, directly or through SSH tunnel. Important in terms of security.</li><li>Browse or edit data in your tables or views, filter by column value. This using a data editor.</li><li>Edit SQL queries with auto-complete suggestions or use query designer.</li><li>Export and import from/to CSV, JSON, or Excel.</li><li>Connect to <a href="https://www.osradar.com/how-to-install-mongodb-on-ubuntu-20-04/" target="_blank" rel="noreferrer noopener">MongoDB</a>, browse or filter JSON document data.</li></ul>



<p>In addition to this, you can further extend the functionality of the program by adding plugins.</p>



<h2 id="install-dbgate-on-linux"><a href="#install-dbgate-on-linux" name="install-dbgate-on-linux"></a>Install DbGate on Linux</h2>



<p>In the Linux chaos, we have several options depending on the system you are using. In the case of Debian, Ubuntu and derivatives there is a <code>DEB</code> package that can be downloaded <a href="https://github.com/dbgate/dbgate" target="_blank" rel="noreferrer noopener">from Github</a> or using the terminal.</p>



<pre class="wp-block-preformatted">wget -c https://github.com/dbgate/dbgate/releases/download/v4.2.0/dbgate-latest.deb</pre>



<p>And then install it, <a href="https://www.osradar.com/apt-the-ubuntu-package-manager/" target="_blank" rel="noreferrer noopener">using APT</a>.</p>



<pre class="wp-block-preformatted">sudo apt install ./dbgate-latest.deb</pre>



<p>Then you can run it from the main menu.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="607" src="https://www.osradar.com/wp-content/uploads/2021/05/1-6-1024x607.png" alt="1.- DbGate running" class="wp-image-30188" srcset="https://www.osradar.com/wp-content/uploads/2021/05/1-6-1024x607.png 1024w, https://www.osradar.com/wp-content/uploads/2021/05/1-6-300x178.png 300w, https://www.osradar.com/wp-content/uploads/2021/05/1-6-768x455.png 768w, https://www.osradar.com/wp-content/uploads/2021/05/1-6-696x412.png 696w, https://www.osradar.com/wp-content/uploads/2021/05/1-6-1068x633.png 1068w, https://www.osradar.com/wp-content/uploads/2021/05/1-6.png 1372w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>1.- DbGate running</figcaption></figure>



<p>There are also other formats like APPImage that you can run from any other Linux distribution or use the binaries.</p>



<h2 id="conclusion"><a href="#conclusion" name="conclusion"></a>Conclusion</h2>



<p>Having professional tools for database management is a serious matter that requires some preliminary research. At the moment, DbGate has all the basic features to make it a solid alternative to others on the market. Being OpenSource and including Linux support, it generates more exceptions and is an option to take into account.</p>



<p>Enjoy it!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/dbgate-database-client/">DbGate: The Smartest (no)SQL Database Client</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/dbgate-database-client/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install MongoDB on Debian 10?</title>
		<link>https://www.osradar.com/how-to-install-mongodb-debian-10/</link>
					<comments>https://www.osradar.com/how-to-install-mongodb-debian-10/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Mon, 16 Mar 2020 23:57:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18896</guid>

					<description><![CDATA[<p>Hi, friends in this post I&#8217;ll show you how to install MongoDB on Debian 10. Nowadays many projects are developed using SQL type databases, but it&#8217;s more and more common to see NoSQL type databases becoming more and more important. From this type of database, MongoDB stands out a lot. MongoDB is one of the [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-debian-10/">How to install MongoDB on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><strong>Hi, friends in this post I&#8217;ll show you how to install MongoDB on Debian 10.</strong></p>
<p>Nowadays many projects are developed using SQL type databases, but it&#8217;s more and more common to see NoSQL type databases becoming more and more important. From this type of database, MongoDB stands out a lot.</p>
<p><a href="https://www.mongodb.com/" target="_blank" rel="noopener noreferrer">MongoDB</a> is one of the most popular <a href="https://www.osradar.com/tag/nosql/" target="_blank" rel="noopener noreferrer">NoSQL</a> database managers in the world. Unlike managers like <a href="https://www.osradar.com/tag/mysql/" target="_blank" rel="noopener noreferrer">MySQL</a> or <a href="https://www.osradar.com/tag/postgresql/" target="_blank" rel="noopener noreferrer">PostgreSQL</a>, it saves your records in documents so they are more understandable and operations faster to do. As I said, it is incredibly popular with developers.</p>
<p>So let&#8217;s get to work.</p>
<h2>Install MongoDB on Debian 10</h2>
<p>MongoDB has a special repository for Debian 10 that has recently been updated. This will help us to have the latest version available and keep it updated using APT.</p>
<p>So, open a terminal or connect to your server using SSH.</p>
<p>Then, install gnupg which is a package that is necessary to add the MongoDB repository.</p>
<pre>:~$ sudo apt install gnupg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  dirmngr gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libassuan0 libksba8 libnpth0 pinentry-curses
Suggested packages:
  pinentry-gnome3 tor parcimonie xloadimage scdaemon pinentry-doc
The following NEW packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client gpg-wks-server gpgconf gpgsm libassuan0 libksba8 libnpth0 pinentry-curses
0 upgraded, 14 newly installed, 0 to remove and 0 not upgraded.
Need to get 7089 kB of archives.
After this operation, 14.9 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>
<p><figure id="attachment_18940" aria-describedby="caption-attachment-18940" style="width: 1263px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18940" src="https://www.osradar.com/wp-content/uploads/2020/03/1-3.png" alt="1.- Installing GNUpg on Debian 10" width="1263" height="302" srcset="https://www.osradar.com/wp-content/uploads/2020/03/1-3.png 1263w, https://www.osradar.com/wp-content/uploads/2020/03/1-3-300x72.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/1-3-1024x245.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/1-3-768x184.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/1-3-696x166.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/1-3-1068x255.png 1068w" sizes="(max-width: 1263px) 100vw, 1263px" /><figcaption id="caption-attachment-18940" class="wp-caption-text">1.- Installing GNUpg on Debian 10</figcaption></figure></p>
<p>Once the program is installed, we can import the GPG key from the MongoDB repository. To do this, use the following command:</p>
<pre>:~$ wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -</pre>
<p>Once the GPG key is added, you can add the MongoDB repository itself. This is done by running the following command:</p>
<pre>:~$ echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/4.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list</pre>
<p><figure id="attachment_18941" aria-describedby="caption-attachment-18941" style="width: 1224px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18941" src="https://www.osradar.com/wp-content/uploads/2020/03/2-4.png" alt="2.- Adding the MongoDB repository" width="1224" height="139" srcset="https://www.osradar.com/wp-content/uploads/2020/03/2-4.png 1224w, https://www.osradar.com/wp-content/uploads/2020/03/2-4-300x34.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/2-4-1024x116.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/2-4-768x87.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/2-4-696x79.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/2-4-1068x121.png 1068w" sizes="(max-width: 1224px) 100vw, 1224px" /><figcaption id="caption-attachment-18941" class="wp-caption-text">2.- Adding the MongoDB repository</figcaption></figure></p>
<p>Aftert that, refresh APT software sources.</p>
<pre>:~$ sudo apt update</pre>
<p>Finally, install MongoDB on Debian 10 using this command:</p>
<pre>:~$ sudo apt install mongodb-org
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libcurl4 mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
The following NEW packages will be installed:
  libcurl4 mongodb-org mongodb-org-mongos mongodb-org-server mongodb-org-shell mongodb-org-tools
0 upgraded, 6 newly installed, 0 to remove and 51 not upgraded.
Need to get 97.7 MB of archives.
After this operation, 295 MB of additional disk space will be used.
Do you want to continue? [Y/n]</pre>
<p><figure id="attachment_18942" aria-describedby="caption-attachment-18942" style="width: 855px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18942" src="https://www.osradar.com/wp-content/uploads/2020/03/3-4.png" alt="3.- Installing MongoDB on Debian 10" width="855" height="257" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3-4.png 855w, https://www.osradar.com/wp-content/uploads/2020/03/3-4-300x90.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/3-4-768x231.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/3-4-696x209.png 696w" sizes="(max-width: 855px) 100vw, 855px" /><figcaption id="caption-attachment-18942" class="wp-caption-text">3.- Installing MongoDB on Debian 10</figcaption></figure></p>
<p>Now we work a little with the application.</p>
<h2>Using MongoDB</h2>
<p>First, you have to start the MongoDB service. Because at this point, the program is installed but not running. To do this, run the following command:</p>
<pre>:~$ sudo systemctl start mongod</pre>
<p>Once it&#8217;s started, you can check the status of the service:</p>
<pre>:~$ sudo systemctl status mongod
● mongod.service - MongoDB Database Server
   Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
   Active: active (running) since Fri 2020-03-06 07:34:05 EST; 22s ago
     Docs: https://docs.mongodb.org/manual
 Main PID: 1882 (mongod)
   Memory: 82.3M
   CGroup: /system.slice/mongod.service
           └─1882 /usr/bin/mongod --config /etc/mongod.conf
Mar 06 07:34:05 osradar systemd[1]: Started MongoDB Database Server.</pre>
<p><figure id="attachment_18943" aria-describedby="caption-attachment-18943" style="width: 833px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18943" src="https://www.osradar.com/wp-content/uploads/2020/03/4-1.png" alt="4.- Working with the MongoDB services" width="833" height="247" srcset="https://www.osradar.com/wp-content/uploads/2020/03/4-1.png 833w, https://www.osradar.com/wp-content/uploads/2020/03/4-1-300x89.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/4-1-768x228.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/4-1-696x206.png 696w" sizes="(max-width: 833px) 100vw, 833px" /><figcaption id="caption-attachment-18943" class="wp-caption-text">4.- Working with the MongoDB services</figcaption></figure></p>
<p>It&#8217;s best to get MongoDB started with the system:</p>
<pre>:~$ sudo systemctl enable mongod</pre>
<p>Now we can really use it.</p>
<p>Once MongoDB is running, we have to access the shell where we work most of the time. You access it with the following command:</p>
<pre>:~$ mongo
MongoDB shell version v4.2.3
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&amp;gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("64377c80-4b9d-4909-93d2-374023c98ee9") }
MongoDB server version: 4.2.3
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
	http://docs.mongodb.org/
Questions? Try the support group
	http://groups.google.com/group/mongodb-user
Server has startup warnings: 
2020-03-06T07:34:06.314-0500 I  STORAGE  [initandlisten] 
2020-03-06T07:34:06.314-0500 I  STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2020-03-06T07:34:06.314-0500 I  STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2020-03-06T07:34:07.288-0500 I  CONTROL  [initandlisten] 
2020-03-06T07:34:07.289-0500 I  CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2020-03-06T07:34:07.289-0500 I  CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2020-03-06T07:34:07.289-0500 I  CONTROL  [initandlisten] 
2020-03-06T07:34:07.289-0500 I  CONTROL  [initandlisten] 
2020-03-06T07:34:07.289-0500 I  CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2020-03-06T07:34:07.289-0500 I  CONTROL  [initandlisten] **        We suggest setting it to 'never'
2020-03-06T07:34:07.289-0500 I  CONTROL  [initandlisten] 
---
Enable MongoDB's free cloud-based monitoring service, which will then receive and display
metrics about your deployment (disk utilization, CPU, operation statistics, etc).

The monitoring data will be available on a MongoDB website with a unique URL accessible to you
and anyone you share the URL with. MongoDB may use this information to make product
improvements and to suggest MongoDB products and deployment options to you.

To enable free monitoring, run the following command: db.enableFreeMonitoring()
To permanently disable this reminder, run the following command: db.disableFreeMonitoring()
---

&gt;</pre>
<p><figure id="attachment_18947" aria-describedby="caption-attachment-18947" style="width: 1266px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18947" src="https://www.osradar.com/wp-content/uploads/2020/03/5-3.png" alt="5.- Access to the MongoDB shell" width="1266" height="635" srcset="https://www.osradar.com/wp-content/uploads/2020/03/5-3.png 1266w, https://www.osradar.com/wp-content/uploads/2020/03/5-3-300x150.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/5-3-1024x514.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/5-3-768x385.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/5-3-696x349.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/5-3-1068x536.png 1068w, https://www.osradar.com/wp-content/uploads/2020/03/5-3-837x420.png 837w" sizes="(max-width: 1266px) 100vw, 1266px" /><figcaption id="caption-attachment-18947" class="wp-caption-text">5.- Access to the MongoDB shell</figcaption></figure></p>
<p>Once inside the shell, the first thing we have to do is create a new database which is where you will work.</p>
<p>To do this there is no create command but use that serves to switch between databases. If the database does not exist, it will be created automatically.</p>
<pre>:~$ use Example</pre>
<p>You can check existing databases with the following command:</p>
<pre>&gt; db
Example</pre>
<p>And then, create the user who will own the database.</p>
<pre>&gt; db.createUser(
... {
... user: "angelo",
... pwd: "1234",
... roles: ["dbOwner"]
... }
... 
... )</pre>
<p><figure id="attachment_18948" aria-describedby="caption-attachment-18948" style="width: 699px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18948" src="https://www.osradar.com/wp-content/uploads/2020/03/6-2.png" alt="6.- Creating a new user for the database" width="699" height="226" srcset="https://www.osradar.com/wp-content/uploads/2020/03/6-2.png 699w, https://www.osradar.com/wp-content/uploads/2020/03/6-2-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/6-2-696x226.png 696w" sizes="(max-width: 699px) 100vw, 699px" /><figcaption id="caption-attachment-18948" class="wp-caption-text">6.- Creating a new user for the database</figcaption></figure></p>
<p>Remember to replace &#8220;<strong>1234</strong>&#8221; with a much stronger and more secure password. Just like the user can call himself as you want.</p>
<p>The main advantage of this is that we can now access MongoDB by setting a password and over a database. This increases privacy and security.</p>
<p>Now log out using:</p>
<pre>&gt; exit</pre>
<p>And now we&#8217;re going to prove what we&#8217;ve done.</p>
<p>To connect to the database with the newly created username and password, you can use the following command:</p>
<pre>:~$ mongo -u [user] -p [pwd] 127.0.0.1:27017/[database]</pre>
<p>Do not forget to replace the fields with your assigned values.</p>
<p><figure id="attachment_18949" aria-describedby="caption-attachment-18949" style="width: 1283px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-18949" src="https://www.osradar.com/wp-content/uploads/2020/03/7-1.png" alt="7.- Connecting to a MongoDB database" width="1283" height="542" srcset="https://www.osradar.com/wp-content/uploads/2020/03/7-1.png 1283w, https://www.osradar.com/wp-content/uploads/2020/03/7-1-300x127.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/7-1-1024x433.png 1024w, https://www.osradar.com/wp-content/uploads/2020/03/7-1-768x324.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/7-1-696x294.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/7-1-1068x451.png 1068w, https://www.osradar.com/wp-content/uploads/2020/03/7-1-994x420.png 994w" sizes="(max-width: 1283px) 100vw, 1283px" /><figcaption id="caption-attachment-18949" class="wp-caption-text">7.- Connecting to a MongoDB database</figcaption></figure></p>
<p>So, you can start with MongoDB.</p>
<h2>Conclusion</h2>
<p>MongoDB is a solid alternative to SQL databases. It is quite popular and is used in many mobile and mass deployment projects. Today you have learned to install it on Debian 10 using the official repository they provide.</p>
<p>Please share this post and join<a href="https://t.me/osradar" target="_blank" rel="noopener noreferrer"> our Telegram channel</a>.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-debian-10/">How to install MongoDB on Debian 10?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-mongodb-debian-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>TablePlus a modern tool for databases management</title>
		<link>https://www.osradar.com/tableplus-tool-database-management/</link>
					<comments>https://www.osradar.com/tableplus-tool-database-management/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 15 Dec 2019 23:22:00 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQLite]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16515</guid>

					<description><![CDATA[<p>Tools to work with databases there are many. However, many of them specialize in certain database handlers, for example, PHPMyAdmin only focuses on MySQL / MariaDB. Today, I will tell you about TablePlus which is presented to us as a modern and native database management tool. I will also show you how to install it [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/tableplus-tool-database-management/">TablePlus a modern tool for databases management</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Tools to work with databases there are many. However, many of them specialize in certain database handlers, for example, PHPMyAdmin only focuses on MySQL / MariaDB. Today, I will tell you about <strong>TablePlus which is presented to us as a modern and native database management tool</strong>.  I will also show you how to install it in Ubuntu 18.04.</p>



<p>TablePlus is a modern intuitive application that is for managing relational and non-relational databases. Its main advantage is that it is compatible with many database management systems including popular, <a rel="noreferrer noopener" aria-label="MySQL (opens in a new tab)" href="https://www.osradar.com/tag/mysql" target="_blank">MySQL</a>, <a href="https://www.osradar.com/tag/mariadb" target="_blank" rel="noreferrer noopener" aria-label="MariaDB (opens in a new tab)">MariaDB</a>, <a href="https://www.osradar.com/tag/postgresql" target="_blank" rel="noreferrer noopener" aria-label="PostgreSQL (opens in a new tab)">PostgreSQL</a> or <a href="https://www.osradar.com/tag/sqlite" target="_blank" rel="noreferrer noopener" aria-label="SQLite (opens in a new tab)">SQLite</a>. But it also supports NoSQL databases such as Apache <a href="https://www.osradar.com/tag/cassandra" target="_blank" rel="noreferrer noopener" aria-label="Cassandra (opens in a new tab)">Cassandra</a> and <a href="https://www.osradar.com/tag/mongodb" target="_blank" rel="noreferrer noopener" aria-label="MongoDB (opens in a new tab)">MongoDB</a>. In addition, the team of developers promises that more will come.</p>



<p>I like the minimalist and modern design of the application that gives a sensation of being an application according to these times.<strong> However, the application is not free and you have to pay to use it.</strong></p>



<p>On the other hand, the application has stable and consolidated versions for <a href="https://www.osradar.com/tag/windows" target="_blank" rel="noreferrer noopener" aria-label="Windows (opens in a new tab)">Windows</a> and macOS <a rel="noreferrer noopener" aria-label="but recently they have published (opens in a new tab)" href="https://tableplus.com/blog/2019/12/tableplus-linux-alpha.html" target="_blank">but recently they have published</a> an Alpha version for Linux. And the best thing is that these alphas are free and we will be able to try them.</p>



<p>So, let&#8217;s take a look.</p>



<h2>Install TablePlus on Ubuntu</h2>



<p>To install it in Ubuntu 18.04, you have to add the application repository. First, you have to add the GPG key to it.</p>



<pre class="wp-block-preformatted">:~$ wget -O - -q http://deb.tableplus.com/apt.tableplus.com.gpg.key | sudo apt-key add - </pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="980" height="132" src="https://www.osradar.com/wp-content/uploads/2019/12/1-5.png" alt="1.- Adding the GPG key for TablePlus" class="wp-image-16520" srcset="https://www.osradar.com/wp-content/uploads/2019/12/1-5.png 980w, https://www.osradar.com/wp-content/uploads/2019/12/1-5-300x40.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/1-5-768x103.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/1-5-696x94.png 696w" sizes="(max-width: 980px) 100vw, 980px" /><figcaption>1.- Adding the GPG key for TablePlus</figcaption></figure>



<p>Then, add the repository by creating a file called <code>tableplus.list</code> in <code>/etc/apt/sources.list.d/</code> and add the following:</p>



<pre class="wp-block-preformatted">:~$ sudo nano /etc/apt/sources.list.d/tableplus.list</pre>



<pre class="wp-block-preformatted">deb [arch=amd64] https://deb.tableplus.com/debian tableplus main</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="900" height="146" src="https://www.osradar.com/wp-content/uploads/2019/12/2-4.png" alt="2.- Adding the TablePlus repository" class="wp-image-16521" srcset="https://www.osradar.com/wp-content/uploads/2019/12/2-4.png 900w, https://www.osradar.com/wp-content/uploads/2019/12/2-4-300x49.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/2-4-768x125.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/2-4-696x113.png 696w" sizes="(max-width: 900px) 100vw, 900px" /><figcaption>2.- Adding the TablePlus repository</figcaption></figure>



<p>Save the changes and close the editor. I use the terminal a lot but you can create the file with another editor like gedit.</p>



<p>After that, refresh the APT cache and finally install Tableplus.</p>



<pre class="wp-block-preformatted">:~$ sudo apt update 
:~$ sudo apt install tableplus</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2019/12/3-5-1024x502.png" alt="3.- Installing TablePlus the modern tool for databases management" class="wp-image-16522" srcset="https://www.osradar.com/wp-content/uploads/2019/12/3-5-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/3-5-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/3-5-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/3-5-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/12/3-5-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/12/3-5-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/3-5-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/3-5-857x420.png 857w, https://www.osradar.com/wp-content/uploads/2019/12/3-5.png 1365w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- Installing TablePlus the modern tool for databases management</figcaption></figure>



<p>Then, you can run it from the main menu.</p>



<h3>A little look to this tool for Database management</h3>



<p>As soon as you open it you will be able to configure a new connection to a database server. There you will have to configure the connection. You will also have the option to test the connection before starting it.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="575" src="https://www.osradar.com/wp-content/uploads/2019/12/4-3-1024x575.png" alt="4.- Configuring a new connection" class="wp-image-16523" srcset="https://www.osradar.com/wp-content/uploads/2019/12/4-3-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/4-3-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/4-3-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/4-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/4-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/4-3-748x420.png 748w, https://www.osradar.com/wp-content/uploads/2019/12/4-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- Configuring a new connection</figcaption></figure>



<p>In my case, I have used an instance of MariaDB to test. By default, when you establish the connection, you see the following way:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="575" src="https://www.osradar.com/wp-content/uploads/2019/12/5-3-1024x575.png" alt="5.- TablePlus running" class="wp-image-16524" srcset="https://www.osradar.com/wp-content/uploads/2019/12/5-3-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/5-3-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/5-3-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/5-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/5-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/5-3-748x420.png 748w, https://www.osradar.com/wp-content/uploads/2019/12/5-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- TablePlus running</figcaption></figure>



<p>On the left side, the list of tables and below you can switch between databases. If you select a table, the data will be shown like this:</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="575" src="https://www.osradar.com/wp-content/uploads/2019/12/6-3-1024x575.png" alt="6.- Showing the data" class="wp-image-16525" srcset="https://www.osradar.com/wp-content/uploads/2019/12/6-3-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/6-3-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/6-3-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/6-3-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/6-3-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/6-3-748x420.png 748w, https://www.osradar.com/wp-content/uploads/2019/12/6-3.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>6.- Showing the data</figcaption></figure>



<p>As we can see, everything is very clean, tidy, modern. One of the characteristics of this client is that everything looks very integrated with the GTK system. I haven&#8217;t tried it with QT.</p>



<p>Thanks to the lower buttons, you will be able to verify the structure of the table very quickly.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="575" src="https://www.osradar.com/wp-content/uploads/2019/12/7-2-1024x575.png" alt="7.- Table structure using TablePlus" class="wp-image-16526" srcset="https://www.osradar.com/wp-content/uploads/2019/12/7-2-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/7-2-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/7-2-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/7-2-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/7-2-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/7-2-748x420.png 748w, https://www.osradar.com/wp-content/uploads/2019/12/7-2.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>7.- Table structure using TablePlus</figcaption></figure>



<p>Also, you can limit the number of results you get.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="575" src="https://www.osradar.com/wp-content/uploads/2019/12/8-1-1024x575.png" alt="8.- Set limit to data" class="wp-image-16527" srcset="https://www.osradar.com/wp-content/uploads/2019/12/8-1-1024x575.png 1024w, https://www.osradar.com/wp-content/uploads/2019/12/8-1-300x168.png 300w, https://www.osradar.com/wp-content/uploads/2019/12/8-1-768x431.png 768w, https://www.osradar.com/wp-content/uploads/2019/12/8-1-696x391.png 696w, https://www.osradar.com/wp-content/uploads/2019/12/8-1-1068x600.png 1068w, https://www.osradar.com/wp-content/uploads/2019/12/8-1-748x420.png 748w, https://www.osradar.com/wp-content/uploads/2019/12/8-1.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>8.- Set limit to data</figcaption></figure>



<p>So this is a very small look at this application.</p>



<p>Remember it&#8217;s an alpha and the developers say there will be weekly updates so don&#8217;t forget to update your equipment.</p>



<p>Also, keep in mind that the application will gradually evolve but it is a good start. It has been fast, efficient and easy to use all this with a pretty nice interface.</p>



<p>For more information, I recommend you visit the <a href="https://tableplus.com/" target="_blank" rel="noreferrer noopener" aria-label="application website (opens in a new tab)">application website</a>.</p>



<p>So, that is it. Do not forget to share.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/tableplus-tool-database-management/">TablePlus a modern tool for databases management</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/tableplus-tool-database-management/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Deploy MongoDB using Docker Compose</title>
		<link>https://www.osradar.com/deploy-mongodb-using-docker-compose/</link>
					<comments>https://www.osradar.com/deploy-mongodb-using-docker-compose/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 09 Nov 2019 01:30:59 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15313</guid>

					<description><![CDATA[<p>Hey, guys. This time, we will show you how to install MongoDB using Docker Compose. I have to admit that these last days I have liked much more the technology of Docker compose. It seems a very simple and fast way to install certain applications. However, from my point of view, a bit of flexibility [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-mongodb-using-docker-compose/">Deploy MongoDB using Docker Compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<strong>Hey, guys. This time, we will show you how to install MongoDB using Docker Compose.</strong>

I have to admit that these last days I have liked much more the technology of Docker compose. It seems a very simple and fast way to install certain applications. However, from my point of view, a bit of flexibility is lost in the configurations since they are images already created from a base. Of course, we will be able to configure some things but not everything.

In Osradar we have written several times about <a href="https://osradar.com/tag/mongodb/" target="_blank" rel="noopener noreferrer">MongoDB</a>. Not in vain is one of the <a href="https://www.osradar.com/tag/nosql/" target="_blank" rel="noopener noreferrer">NoSQL</a> database management systems based on the most popular documents out there. Widely used in mobile applications as well as in transactional systems, MongoDB stands out for its flexibility and query speed.

Fast, robust and high performance are some of the main features of MongoDB.

So, let us start.


<h2>Install Docker and Docker Compose on Linux</h2>
 

The first step is to have Docker installed in the system, obviously.

 
<ul>
 	<li>If you are using Ubuntu: <a href="https://www.osradar.com/how-to-install-docker-on-ubuntu-18-04/" target="_blank" rel="noreferrer noopener">How to install Docker on Ubuntu 18.04?</a></li>
 	<li>For CentOS 8: <a href="https://www.osradar.com/install-docker-centos-8/" target="_blank" rel="noreferrer noopener">How to install Docker on CentOS 8?</a></li>
 	<li>For CentOS 7: <a href="https://www.osradar.com/how-to-install-docker-ce-on-centos-7/" target="_blank" rel="noreferrer noopener">How to install Docker CE on CentOS 7?</a></li>
 	<li>If you use Windows: <a href="https://www.osradar.com/how-to-install-docker-in-windows-10/" target="_blank" rel="noreferrer noopener">How to install Docker in Windows 10?</a></li>
 	<li>Or, if you are using Debian 10: <a href="https://www.osradar.com/install-docker-on-debian-10/" target="_blank" rel="noreferrer noopener">How to install Docker on Debian 10?</a></li>
</ul>
 

And using your distribution’s package manager, you can install Docker Compose. For example:

 
<pre class="wp-block-preformatted">:~$ sudo apt docker-compose</pre>
 

For Debian, Ubuntu and derivatives.

 
<pre class="wp-block-preformatted">:~$ sudo yum install docker-compose</pre>
 

Or, for RHEL, CentOS and derivatives.
<h2>Deploy MongoDB using Docker Compose</h2>
To display the Docker image of MongoDB, first I&#8217;m going to create a folder.

So open a terminal session and run:
<pre>:~$ mkdir mongodb
:~$ cd mongodb</pre>
<figure id="attachment_15336" aria-describedby="caption-attachment-15336" style="width: 663px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15336" src="https://www.osradar.com/wp-content/uploads/2019/11/1-2.png" alt="1.- Creating the folder for MongoDB" width="663" height="95" srcset="https://www.osradar.com/wp-content/uploads/2019/11/1-2.png 663w, https://www.osradar.com/wp-content/uploads/2019/11/1-2-300x43.png 300w" sizes="(max-width: 663px) 100vw, 663px" /><figcaption id="caption-attachment-15336" class="wp-caption-text">1.- Creating the folder for MongoDB</figcaption></figure>

Then, in the same folder create the docker-compose.yml file. And add the following content:
<pre>:~$ nano docker-compose.yml</pre>
<pre>version: '3.1'

services:

  mongo:
    image: mongo
    restart: always
    environment:
      MONGO_INITDB_DATABASE=example
      MONGO_INITDB_ROOT_USERNAME: root
      MONGO_INITDB_ROOT_PASSWORD: example
    volumes:
      - /home/angelo/mongodata:/data/db

  mongo-express:
    image: mongo-express
    restart: always
    ports:
      - 8081:8081
    environment:
      ME_CONFIG_MONGODB_ADMINUSERNAME: root
      ME_CONFIG_MONGODB_ADMINPASSWORD: example</pre>
<figure id="attachment_15337" aria-describedby="caption-attachment-15337" style="width: 812px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15337" src="https://www.osradar.com/wp-content/uploads/2019/11/2-2.png" alt="2.- Deploy MongoDB using docker compose" width="812" height="457" srcset="https://www.osradar.com/wp-content/uploads/2019/11/2-2.png 812w, https://www.osradar.com/wp-content/uploads/2019/11/2-2-300x169.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/2-2-768x432.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/2-2-696x392.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/2-2-746x420.png 746w" sizes="(max-width: 812px) 100vw, 812px" /><figcaption id="caption-attachment-15337" class="wp-caption-text">2.- Deploy MongoDB using docker compose</figcaption></figure>

In this file, two services are specified. Firstly, the one we are interested in is MongoDB. The definition is quite simple because you only have to configure as environment variables, the initial database, as well as the password and the root user.

The interesting thing is that I add a local folder <code>/home/angelo/mongodata</code> as volume so that it communicates with the container and thus to store the data. In other words, the database and collections will be stored in that folder. Obviously, specify the one you want but you must create it before making this file.

The second service is <code>mongo-express</code> which is a graphical interface built with NodeJS and express to manage MongoDB. There the important thing is that the execution port is <code>8081</code>. You can change it, obviously.

Then, we can &#8220;raise&#8221; the images. To do this, just use this command:
<pre>:~$ sudo docker-compose up -d</pre>
After that, open your web browser and go to <code>http://your-server:8081</code>

<figure id="attachment_15338" aria-describedby="caption-attachment-15338" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="wp-image-15338 size-full" src="https://www.osradar.com/wp-content/uploads/2019/11/3-3.png" alt="3.- Mongo express and mongodb running" width="1354" height="668" srcset="https://www.osradar.com/wp-content/uploads/2019/11/3-3.png 1354w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/3-3-851x420.png 851w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-15338" class="wp-caption-text">3.- Mongo express and mongodb running</figcaption></figure>

Next, you can for example, create a new database.

<figure id="attachment_15339" aria-describedby="caption-attachment-15339" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15339" src="https://www.osradar.com/wp-content/uploads/2019/11/4-3.png" alt="4.- Creating a new database " width="1365" height="668" srcset="https://www.osradar.com/wp-content/uploads/2019/11/4-3.png 1365w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-1024x501.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-533x261.png 533w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/4-3-858x420.png 858w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-15339" class="wp-caption-text">4.- Creating a new database</figcaption></figure>

And create a new collection.

<figure id="attachment_15340" aria-describedby="caption-attachment-15340" style="width: 1354px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-15340" src="https://www.osradar.com/wp-content/uploads/2019/11/5-2.png" alt="5.- MongoDB running using Docker compose" width="1354" height="668" srcset="https://www.osradar.com/wp-content/uploads/2019/11/5-2.png 1354w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-768x379.png 768w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-1024x505.png 1024w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-324x160.png 324w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-696x343.png 696w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-1068x527.png 1068w, https://www.osradar.com/wp-content/uploads/2019/11/5-2-851x420.png 851w" sizes="(max-width: 1354px) 100vw, 1354px" /><figcaption id="caption-attachment-15340" class="wp-caption-text">5.- MongoDB running using Docker compose</figcaption></figure>

So, everything is perfect.
<h2>Conclusion</h2>
MongoDB is a powerful database manager. Today we have learned to install it using Docker Compose. So how to use it a lot. Remember that installing it this way is recommended for servers and production systems and not so much for development.

<p>The post <a rel="nofollow" href="https://www.osradar.com/deploy-mongodb-using-docker-compose/">Deploy MongoDB using Docker Compose</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/deploy-mongodb-using-docker-compose/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install MongoDB in Windows 10</title>
		<link>https://www.osradar.com/how-to-install-mongodb-in-windows-10/</link>
					<comments>https://www.osradar.com/how-to-install-mongodb-in-windows-10/#respond</comments>
		
		<dc:creator><![CDATA[roger]]></dc:creator>
		<pubDate>Thu, 24 Oct 2019 20:51:43 +0000</pubDate>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Windows 10]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=15008</guid>

					<description><![CDATA[<p>Hi. How are you? This time we are going to talk about MongoDB. It is an opensource NOSQL database based on documents, written in C++, scalable and high performance. MongoDB stores BSON data structures with a dynamic schema. Consequently, the integration of the data in certain applications is easier and faster. Well, let&#8217;s see how [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-in-windows-10/">How to install MongoDB in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Hi. How are you? This time we are going to talk about <a rel="noreferrer noopener" aria-label="MongoDB (opens in a new tab)" href="https://www.mongodb.com/" target="_blank">MongoDB</a>. It is an opensource NOSQL database based on documents, written in C++, scalable and high performance. MongoDB stores BSON data structures with a dynamic schema. Consequently, the integration of the data in certain applications is easier and faster. Well, let&#8217;s see how to install MongoDB on Windows 10.</p>



<h2>Downloading the MongoDB binary for Windows.</h2>



<p>The first thing we have to do is, go to the official MongoDB website. Go to the <a rel="noreferrer noopener" aria-label="download (opens in a new tab)" href="https://www.mongodb.com/download-center/community" target="_blank">download</a> section and select the MSI file, corresponding to Windows in its current version. At the time of publication of this post, the version is 4.2.1.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="734" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo-1024x734.jpg" alt="Downloading the MongoDB MSI file" class="wp-image-15011" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/mongo-300x215.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/mongo-768x551.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/mongo-696x499.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/mongo-586x420.jpg 586w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Downloading the MongoDB MSI file</figcaption></figure>



<p>Once you have downloaded the file, please run it to start the installation. Press Next to start the installation</p>



<figure class="wp-block-image"><img loading="lazy" width="498" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo2.jpg" alt="MongoDB Setup Wizard welcome screen" class="wp-image-15013" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo2.jpg 498w, https://www.osradar.com/wp-content/uploads/2019/10/mongo2-300x235.jpg 300w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption>MongoDB Setup Wizard welcome screen</figcaption></figure>



<p>Then accept the license and click Next to continue</p>



<figure class="wp-block-image"><img loading="lazy" width="498" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo3.jpg" alt="Accept the License terms" class="wp-image-15015" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo3.jpg 498w, https://www.osradar.com/wp-content/uploads/2019/10/mongo3-300x235.jpg 300w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption>Accept the License terms</figcaption></figure>



<p>In the next screen select between a Custom or a complete installation. In this case, I select a full installation.</p>



<figure class="wp-block-image"><img loading="lazy" width="498" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo4.jpg" alt="Choose installation type" class="wp-image-15018" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo4.jpg 498w, https://www.osradar.com/wp-content/uploads/2019/10/mongo4-300x235.jpg 300w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption>Choose installation type</figcaption></figure>



<p>This next screen is very important since we are going to install MongoDB as a Windows service. In other words, always start with the system and be registered. Also, select the directory where the data will be stored. In addition, select the directory where the logs will be stored. Likewise, you can assign the name for the service. Please remember the installation path.  You will probably need it later. </p>



<figure class="wp-block-image"><img loading="lazy" width="498" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo4-1.jpg" alt="Installing MongoDB as a service" class="wp-image-15020" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo4-1.jpg 498w, https://www.osradar.com/wp-content/uploads/2019/10/mongo4-1-300x235.jpg 300w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption>Installing MongoDB as a service</figcaption></figure>



<p>Next, the wizard will ask if you want to install MongoDB Compass. This is a graphical interface to manage the data. If you like it, check the box and click Next to continue.</p>



<figure class="wp-block-image"><img loading="lazy" width="498" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo5.jpg" alt="Install MongoDB Compass" class="wp-image-15021" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo5.jpg 498w, https://www.osradar.com/wp-content/uploads/2019/10/mongo5-300x235.jpg 300w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption>Install MongoDB Compass</figcaption></figure>



<p>Once you have selected all the installation options, press Install to start the process.</p>



<figure class="wp-block-image"><img loading="lazy" width="498" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo6.jpg" alt="Setup ready to install the program" class="wp-image-15022" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo6.jpg 498w, https://www.osradar.com/wp-content/uploads/2019/10/mongo6-300x235.jpg 300w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption>Setup ready to install the program</figcaption></figure>



<p>The wizard will start the database installation process.</p>



<figure class="wp-block-image"><img loading="lazy" width="498" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo7.jpg" alt="Installing MongoDB" class="wp-image-15023" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo7.jpg 498w, https://www.osradar.com/wp-content/uploads/2019/10/mongo7-300x235.jpg 300w" sizes="(max-width: 498px) 100vw, 498px" /><figcaption>Installing MongoDB</figcaption></figure>



<p>After a few minutes, the process will be successfully completed.</p>



<figure class="wp-block-image"><img loading="lazy" width="494" height="390" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo8.jpg" alt="MongoDB finally installed" class="wp-image-15037" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo8.jpg 494w, https://www.osradar.com/wp-content/uploads/2019/10/mongo8-300x237.jpg 300w" sizes="(max-width: 494px) 100vw, 494px" /><figcaption>MongoDB finally installed</figcaption></figure>



<h2>MongoDB finally installed</h2>



<p>If you installed MongoDB Compass Comunity, then you are ready to use the database. This will start automatically once the installation is finished. Press connect to start the database</p>



<p> </p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo10-2-1024x728.jpg" alt="Just press Connect" class="wp-image-15040" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo10-2.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/mongo10-2-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/mongo10-2-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/mongo10-2-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/10/mongo10-2-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/mongo10-2-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>Just press Connect</figcaption></figure>



<p>Then create the database. Assign a name to the collection as well. Press create database to continue.</p>



<figure class="wp-block-image"><img loading="lazy" width="488" height="464" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo12.jpg" alt="Creating a database" class="wp-image-15042" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo12.jpg 488w, https://www.osradar.com/wp-content/uploads/2019/10/mongo12-300x285.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/mongo12-442x420.jpg 442w" sizes="(max-width: 488px) 100vw, 488px" /><figcaption>Creating a database</figcaption></figure>



<p>It is now correctly configured and ready to be used.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo13-1024x728.jpg" alt="MongoDB Compass Community" class="wp-image-15044" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo13.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/mongo13-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/mongo13-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/mongo13-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/10/mongo13-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/mongo13-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>MongoDB Compass Community</figcaption></figure>



<h2> Using MongoDB on the terminal </h2>



<p>It is also possible to use MongoDB through command. You have to make some preparations, but don&#8217;t worry, here we show you how to do it. The first thing we need to do is check if MongoDB was installed as a service, and it&#8217;s running. With this in mind please press the Win+R combination and in the box type <strong>services.msc</strong></p>



<figure class="wp-block-image"><img loading="lazy" width="402" height="206" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo14.jpg" alt="Run services.msc" class="wp-image-15047" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo14.jpg 402w, https://www.osradar.com/wp-content/uploads/2019/10/mongo14-300x154.jpg 300w" sizes="(max-width: 402px) 100vw, 402px" /><figcaption>Run services.msc</figcaption></figure>



<p>Next, place Mongo Server in the list of services. Please verify that it is  <strong>Running</strong> and that its Startup Type is <strong>Automatic</strong>.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo15-1024x728.jpg" alt="MongoDB service running" class="wp-image-15050" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo15.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/mongo15-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/mongo15-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/mongo15-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/10/mongo15-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/mongo15-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>MongoDB service running</figcaption></figure>



<p>It then adds an environment variable to run the service on any Command Prompt. To find out how to do it, please check our post about <a rel="noreferrer noopener" aria-label="Wget (opens in a new tab)" href="https://www.osradar.com/how-to-install-wget-in-windows-10/" target="_blank">Wget</a> in Windows 10. Here I only show you the final result. Keep in mind that you have to write the installation path that you assigned previously.</p>



<figure class="wp-block-image"><img loading="lazy" width="527" height="501" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo16.jpg" alt="Add environment variable to MongoDB" class="wp-image-15052" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo16.jpg 527w, https://www.osradar.com/wp-content/uploads/2019/10/mongo16-300x285.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/mongo16-442x420.jpg 442w" sizes="(max-width: 527px) 100vw, 527px" /><figcaption>Add environment variable to MongoDB</figcaption></figure>



<p>To test the operation of MongoDB, please open a cmd and type <em>Mongo</em>.</p>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="728" src="//1723336065.rsc.cdn77.org/wp-content/uploads/2019/10/mongo17-1024x728.jpg" alt="MongoDB running in a Command Prompt" class="wp-image-15054" srcset="https://www.osradar.com/wp-content/uploads/2019/10/mongo17.jpg 1024w, https://www.osradar.com/wp-content/uploads/2019/10/mongo17-300x213.jpg 300w, https://www.osradar.com/wp-content/uploads/2019/10/mongo17-768x546.jpg 768w, https://www.osradar.com/wp-content/uploads/2019/10/mongo17-100x70.jpg 100w, https://www.osradar.com/wp-content/uploads/2019/10/mongo17-696x495.jpg 696w, https://www.osradar.com/wp-content/uploads/2019/10/mongo17-591x420.jpg 591w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>MongoDB running in a Command Prompt</figcaption></figure>



<h2>Conclusion</h2>



<p>Finally we have seen how to install MongoDB in Windows 10. The process has been detailed in a simple way. In addition, we have seen how to start the program in graphical mode and through commands as well. All right, that&#8217;s it for now. Greetings!</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-in-windows-10/">How to install MongoDB in Windows 10</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-mongodb-in-windows-10/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install MongoDB on CentOS 8 / RHEL 8</title>
		<link>https://www.osradar.com/install-mongodb-centos-8/</link>
					<comments>https://www.osradar.com/install-mongodb-centos-8/#comments</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Thu, 26 Sep 2019 22:30:08 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Centos 8]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13928</guid>

					<description><![CDATA[<p>CentOS 8 is just out of the oven and we are still celebrating. It is not in vain that it is one of the most popular Linux distributions on servers along with Debian and Ubuntu Server. It combines everything we want for a server, is stable, well documented, based on a solid rock like RHEL [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mongodb-centos-8/">How to install MongoDB on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>CentOS 8 is just out of the oven and we are still celebrating. It is not in vain that it is one of the most popular Linux distributions on servers along with Debian and Ubuntu Server. It combines everything we want for a server, is stable, well documented, based on a solid rock like RHEL and is easily accessible. That is, all in one place. However, as it has come out recently it is time to give it support. In this post, you will learn how to install MongoDB on CentOS 8. All fast and easy using DNF.</p>



<p>As is well known by many, <a rel="noreferrer noopener" aria-label="MongoDB (opens in a new tab)" href="https://www.mongodb.com/" target="_blank">MongoDB</a> is a <a href="https://www.osradar.com/tag/nosql/" target="_blank" rel="noreferrer noopener" aria-label="NoSQL (opens in a new tab)">NoSQL</a> database management system that is very popular in mobile programming. It is quite fast, allows high performance clustering and was a paradigm shift to traditional databases. For this reason, many developers consider it vital for their projects. </p>



<p><a href="https://www.osradar.com/centos-8-available/" target="_blank" rel="noreferrer noopener" aria-label="CentOS 8 has just come out (opens in a new tab)">CentOS 8 has just come out</a> and it seems that they still do not give it full support from MongoDB. Something strange, because RHEL 8, which is the base of CentOS 8, was released a few months ago, which has given enough time to adapt the packages. But today we&#8217;ll show you how to install it anyway using DNF.</p>



<p>So, let us start to install MongoDB on CentOS 8.</p>



<h2>Install MongoDB on CentOS 8</h2>



<p>The best way to install MongoDB is using its repositories, but the detail is that it seems that even many packages are not ready for CentOS 8. However, this method shown has proved reliable and effective.</p>



<p>First of all, open a terminal session and we have to configure the MongoDB repository. To do this, open a new file. You can use nano or Vi.</p>



<pre class="wp-block-preformatted">:~$ su
:~# nano /etc/yum.repos.d/mongodb-org-4.4.repo</pre>



<p>And add the following:</p>



<pre class="wp-block-preformatted">[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/development/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc</pre>



<p>Save the changes and close the file.</p>



<p>Now, proceed to install MongoDB with the following command:</p>



<pre class="wp-block-preformatted">:~# dnf install mongodb-org</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="379" src="https://www.osradar.com/wp-content/uploads/2019/09/2-24-1024x379.png" alt="2.- Install MongoDB on CentOS 8" class="wp-image-13930" srcset="https://www.osradar.com/wp-content/uploads/2019/09/2-24-1024x379.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/2-24-300x111.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/2-24-768x284.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/2-24-696x257.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/2-24-1068x395.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/2-24-1136x420.png 1136w, https://www.osradar.com/wp-content/uploads/2019/09/2-24.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>2.- Install MongoDB on CentOS 8</figcaption></figure>



<p>The next step is to start the MongoDB service using systemctl. So use the following command to do it:</p>



<pre class="wp-block-preformatted">:~# systemctl start mongod</pre>



<p>To verify that everything is okay, it is a good idea to check the status of the service.</p>



<pre class="wp-block-preformatted">:~# systemctl status mongod</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="368" src="https://www.osradar.com/wp-content/uploads/2019/09/3-22-1024x368.png" alt="3.- The MongoDB service status" class="wp-image-13931" srcset="https://www.osradar.com/wp-content/uploads/2019/09/3-22-1024x368.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/3-22-300x108.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/3-22-768x276.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/3-22-696x250.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/3-22-1068x384.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/3-22.png 1109w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>3.- The MongoDB service status</figcaption></figure>



<p>Finally, you can access to the MongoDB shell by using the following command:</p>



<pre class="wp-block-preformatted">:~# mongo</pre>



<figure class="wp-block-image"><img loading="lazy" width="1024" height="519" src="https://www.osradar.com/wp-content/uploads/2019/09/4-21-1024x519.png" alt="4.- The MongoDB shell" class="wp-image-13932" srcset="https://www.osradar.com/wp-content/uploads/2019/09/4-21-1024x519.png 1024w, https://www.osradar.com/wp-content/uploads/2019/09/4-21-300x152.png 300w, https://www.osradar.com/wp-content/uploads/2019/09/4-21-768x389.png 768w, https://www.osradar.com/wp-content/uploads/2019/09/4-21-696x353.png 696w, https://www.osradar.com/wp-content/uploads/2019/09/4-21-1068x542.png 1068w, https://www.osradar.com/wp-content/uploads/2019/09/4-21-828x420.png 828w, https://www.osradar.com/wp-content/uploads/2019/09/4-21.png 1270w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>4.- The MongoDB shell</figcaption></figure>



<p>So, enjoy it.</p>



<h2>Conclusion</h2>



<p>MongoDB is one of the best NoSQL document-oriented database handlers. However, it seems to have problems adapting its packages to CentOS 8 and RHEL 8 and therefore, it can complicate the installation. But it hasn&#8217;t been difficult either and for now it has been stable.</p>



<p>Please share this post with your friends and join <a href="https://t.me/osradar" target="_blank" rel="noreferrer noopener" aria-label="our Telegram channe (opens in a new tab)">our Telegram channe</a>l.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mongodb-centos-8/">How to install MongoDB on CentOS 8 / RHEL 8</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mongodb-centos-8/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install Cezerin platform on Ubuntu 18.04?</title>
		<link>https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sun, 25 Aug 2019 23:11:25 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[bionic]]></category>
		<category><![CDATA[cezerin]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NodeJS]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=13163</guid>

					<description><![CDATA[<p>Today much of the trade remains traditional, but every time the trend is turned to the Internet. In this sense, companies large and small, need applications and tools to help promote their products. In addition, create all the infrastructure to conduct E-commerce. So, Linux is outlined as the ideal system to be the system behind [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/">How to install Cezerin platform on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Today much of the trade remains traditional, but every time the trend is turned to the Internet. In this sense, companies large and small, need applications and tools to help promote their products. In addition, create all the infrastructure to conduct E-commerce. So, Linux is outlined as the ideal system to be the system behind the entire infrastructure. Today, I will show you how to install Cezerin on Ubuntu 18.04. With Cezerin you can deploy an e-commerce platform quickly and easily.</p>
<h2>What is Cezerin?</h2>
<p><a href="https://github.com/cezerin/cezerin" rel="noopener">Cezerin</a> is React and Node.js based eCommerce platform. Allows creating Progressive Web Apps.</p>
<p>In other words, you can make a commercial site in a few minutes with this application.</p>
<p>Of course, Cezerin is open source and has the basic operations to make your online store. Although it is simple, it has many features:</p>
<ul>
<li>Products (options, variants, attributes).</li>
<li>Product categories.</li>
<li>Inventory and stock management.</li>
<li>Customers.</li>
<li>Customer groups.</li>
<li>Orders.</li>
<li>Order custom statuses.</li>
</ul>
<p>So, let us get to work.</p>
<h2>Install Cezerin on Ubuntu 18.04</h2>
<p>To install Cezerin it is necessary to have an Ubuntu 18.04 server that has the sudo command available.</p>
<p>On the other hand, since the application is built with NodeJS, it needs to be installed correctly. In addition, to manage the application data use the database manager NoSQL MongoDB. In other words, you have to install them both.</p>
<h3>1) Install NodeJS on Ubuntu 18.04</h3>
<p>The first step is to install NodeJS on Ubuntu 18.04. For that, we have a detailed tutorial that will make you achieve this goal.</p>
<p>Read <a href="https://www.osradar.com/how-to-install-nodejs-on-ubuntu-18-04-lts-linux-mint-19/" rel="noopener">How to install NodeJS on Ubuntu 18.04?</a></p>
<p>Once you have finished, you will be able to continue with the guide.</p>
<h3>2) Install MongoDB on Ubuntu 18.04</h3>
<p>Now it is MongoDB&#8217;s turn. For this, we will use the version available in the official repository of the project. So add it and then install MongoDB.</p>
<p>First, open a terminal and run the following command to add the GPG key of the repository.</p>
<pre>:~$ wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -</pre>
<p><figure id="attachment_13183" aria-describedby="caption-attachment-13183" style="width: 749px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13183" src="https://www.osradar.com/wp-content/uploads/2019/08/1-16.jpeg" alt="1.-Adding the GPG key for the repository" width="749" height="91" srcset="https://www.osradar.com/wp-content/uploads/2019/08/1-16.jpeg 749w, https://www.osradar.com/wp-content/uploads/2019/08/1-16-300x36.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/1-16-696x85.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/1-16-741x91.jpeg 741w" sizes="(max-width: 749px) 100vw, 749px" /><figcaption id="caption-attachment-13183" class="wp-caption-text">1.-Adding the GPG key for the repository</figcaption></figure></p>
<p>It then adds the repository as such to the list of software origins.</p>
<pre>:~$ echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.2 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list</pre>
<p>After this, refresh the APT cache.</p>
<pre>:~$ sudo apt update</pre>
<p>Install MongoDB on Ubuntu with the following command:</p>
<pre>:~$ sudo apt install mongodb-org mongodb-org-shell mongodb-org-server mongodb-org-mongos libcurl3</pre>
<p><figure id="attachment_13184" aria-describedby="caption-attachment-13184" style="width: 920px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13184" src="https://www.osradar.com/wp-content/uploads/2019/08/2-14.jpeg" alt="2.- Install MongoDB on Ubuntu 18.04" width="920" height="233" srcset="https://www.osradar.com/wp-content/uploads/2019/08/2-14.jpeg 920w, https://www.osradar.com/wp-content/uploads/2019/08/2-14-300x76.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/2-14-768x195.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/2-14-696x176.jpeg 696w" sizes="(max-width: 920px) 100vw, 920px" /><figcaption id="caption-attachment-13184" class="wp-caption-text">2.- Install MongoDB on Ubuntu 18.04</figcaption></figure></p>
<p>Check the installed version:</p>
<pre>:~$ mongod -version
db version v4.2.0
git version: a4b751dcf51dd249c5865812b390cfd1c0129c30
OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
allocator: tcmalloc
modules: none
build environment:
distmod: debian92
distarch: x86_64
target_arch: x86_64</pre>
<h3>3) Install Cezerin on Ubuntu 18.04</h3>
<p>After installing the pre-requirements, we will be able to install Cezerin. To do this, navigate to your personal folder and download the source code using git.</p>
<pre>:~$ cd ~
:~$ git clone https://github.com/cezerin/cezerin.git cezerin</pre>
<p><figure id="attachment_13185" aria-describedby="caption-attachment-13185" style="width: 844px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13185" src="https://www.osradar.com/wp-content/uploads/2019/08/3-15.jpeg" alt="3.- Downloading Cezering using git" width="844" height="175" srcset="https://www.osradar.com/wp-content/uploads/2019/08/3-15.jpeg 844w, https://www.osradar.com/wp-content/uploads/2019/08/3-15-300x62.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/3-15-768x159.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/3-15-696x144.jpeg 696w" sizes="(max-width: 844px) 100vw, 844px" /><figcaption id="caption-attachment-13185" class="wp-caption-text">3.- Downloading Cezering using git</figcaption></figure></p>
<p>Then, navigate into the folder and run:</p>
<pre>:~$ cd cezerin
:~$ sudo npm install
:~$ sudo npm run build</pre>
<p><figure id="attachment_13186" aria-describedby="caption-attachment-13186" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13186" src="https://www.osradar.com/wp-content/uploads/2019/08/4-13.jpeg" alt="4.- Installing Cezerin on Ubuntu 18.04" width="1366" height="707" srcset="https://www.osradar.com/wp-content/uploads/2019/08/4-13.jpeg 1366w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-300x155.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-768x397.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-1024x530.jpeg 1024w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-696x360.jpeg 696w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-1068x553.jpeg 1068w, https://www.osradar.com/wp-content/uploads/2019/08/4-13-811x420.jpeg 811w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13186" class="wp-caption-text">4.- Installing Cezerin on Ubuntu 18.04</figcaption></figure></p>
<p>Once the &#8220;compilation&#8221; has been completed, the application must be installed as such. To do this, simply use the following:</p>
<pre>:~$ sudo npm run setup</pre>
<p><figure id="attachment_13187" aria-describedby="caption-attachment-13187" style="width: 663px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13187" src="https://www.osradar.com/wp-content/uploads/2019/08/5-7.jpeg" alt="5.- Install Cezerin on Ubuntu 18.04" width="663" height="370" srcset="https://www.osradar.com/wp-content/uploads/2019/08/5-7.jpeg 663w, https://www.osradar.com/wp-content/uploads/2019/08/5-7-300x167.jpeg 300w" sizes="(max-width: 663px) 100vw, 663px" /><figcaption id="caption-attachment-13187" class="wp-caption-text">5.- Install Cezerin on Ubuntu 18.04</figcaption></figure></p>
<p>Now you can start the program by using the following command:</p>
<pre>:~$ sudo npm start</pre>
<p><figure id="attachment_13188" aria-describedby="caption-attachment-13188" style="width: 825px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13188" src="https://www.osradar.com/wp-content/uploads/2019/08/6-4.jpeg" alt="6.- Starting the application" width="825" height="329" srcset="https://www.osradar.com/wp-content/uploads/2019/08/6-4.jpeg 825w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-300x120.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-768x306.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/6-4-696x278.jpeg 696w" sizes="(max-width: 825px) 100vw, 825px" /><figcaption id="caption-attachment-13188" class="wp-caption-text">6.- Starting the application</figcaption></figure></p>
<p>Now, open your web browser and go to <code>http://Server-ip:3000</code>. Remember to open the port on the firewall.</p>
<p><figure id="attachment_13189" aria-describedby="caption-attachment-13189" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13189" src="https://www.osradar.com/wp-content/uploads/2019/08/7-8.png" alt="7.- Cezering running on Ubuntu 18.04" width="1366" height="664" srcset="https://www.osradar.com/wp-content/uploads/2019/08/7-8.png 1366w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-300x146.png 300w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-768x373.png 768w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-1024x498.png 1024w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-696x338.png 696w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-1068x519.png 1068w, https://www.osradar.com/wp-content/uploads/2019/08/7-8-864x420.png 864w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-13189" class="wp-caption-text">7.- Cezering running on Ubuntu 18.04</figcaption></figure></p>
<p>If you want to manage Cezerin as a systemd service, run the following commands:</p>
<pre>:~$ sudo nano /etc/systemd/system/cezerin.service</pre>
<p>And add the following:</p>
<pre>[Unit]
Description=Cezerin

[Service]
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/cezerin
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodejs-example

[Install]
WantedBy=multi-user.target</pre>
<p><figure id="attachment_13190" aria-describedby="caption-attachment-13190" style="width: 889px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-13190" src="https://www.osradar.com/wp-content/uploads/2019/08/8.jpeg" alt="8.- Make Cezering a systemd service" width="889" height="299" srcset="https://www.osradar.com/wp-content/uploads/2019/08/8.jpeg 889w, https://www.osradar.com/wp-content/uploads/2019/08/8-300x101.jpeg 300w, https://www.osradar.com/wp-content/uploads/2019/08/8-768x258.jpeg 768w, https://www.osradar.com/wp-content/uploads/2019/08/8-696x234.jpeg 696w" sizes="(max-width: 889px) 100vw, 889px" /><figcaption id="caption-attachment-13190" class="wp-caption-text">8.- Make Cezering a systemd service</figcaption></figure></p>
<p>To apply the changes, reload systemd.</p>
<pre>:~$ sudo systemctl daemon-reload</pre>
<p>Now, you can start it, enable it or stop it easily.</p>
<p>And that is it.</p>
<h2>Conclusion</h2>
<p>As you can see, it is quite simple to deploy an E-Commerce platform with Cezerin. Of course, the potential of the application makes the possibilities unimaginable.</p>
<p>So, share this post and please join <a href="https://t.me/osradar">our Telegram channel.</a></p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/">How to install Cezerin platform on Ubuntu 18.04?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-cezerin-platform-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install MongoDB on OpenSUSE 15?</title>
		<link>https://www.osradar.com/install-mongodb-opensuse-15/</link>
					<comments>https://www.osradar.com/install-mongodb-opensuse-15/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Sat, 12 Jan 2019 03:28:48 +0000</pubDate>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tutorial]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=9167</guid>

					<description><![CDATA[<p>The most popular database managers are the SQL type, but nowadays there are other types of database managers that developers are using more and more, I mean the NoSQL type. These database managers, based on reference documents, are a major component of mobile applications, combined with the stability of OpenSUSE make a safe bet. So, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mongodb-opensuse-15/">How to install MongoDB on OpenSUSE 15?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>The most popular database managers are the SQL type, but nowadays there are other types of database managers that developers are using more and more, I mean the NoSQL type. These database managers, based on reference documents, are a major component of mobile applications, combined with the stability of <a href="https://www.osradar.com/tag/opensuse/" rel="noopener">OpenSUSE</a> make a safe bet. So, today I&#8217;ll show you how to install MongoDB on OpenSUSE 15.</p>
<p><a href="https://www.mongodb.com" rel="noopener">MongoDB</a> is one of the most popular NoSQL database managers in the world. Unlike managers like <a href="https://www.osradar.com/making-a-mysql-database-backup-with-mysqldump/">MySQL</a> or <a href="https://www.osradar.com/how-to-install-postgresql-on-ubuntu18-04/">PostgreSQL</a>, it saves your records in documents so they are more understandable and operations faster to do. As I said, it is incredibly popular with developers.</p>
<p>So, let&#8217;s install MongoDB on OpenSUSE.</p>
<h2>1. Upgrade the system</h2>
<p>I always recommend everyone to update the system before starting any critical installation. Upgrading the system helps make it more stable and efficient.</p>
<pre class="">:~$ sudo zyyper up</pre>
<p><figure id="attachment_9169" aria-describedby="caption-attachment-9169" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9169" src="https://www.osradar.com/wp-content/uploads/2019/01/1-10.png" alt="1.- Upgrade the system" width="1365" height="384" srcset="https://www.osradar.com/wp-content/uploads/2019/01/1-10.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/1-10-300x84.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/1-10-768x216.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/1-10-1024x288.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/1-10-1068x300.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9169" class="wp-caption-text">1.- Upgrade the system</figcaption></figure></p>
<p>Now that the system is up to date, it is more stable and ready to start installing MongoDB.</p>
<h2>2. Install MongoDB on OpenSUSE</h2>
<p>MongoDB is not included in the official repositories of the distribution because it is a component that not everyone uses. Therefore, it is necessary to add the databases OpenSUSE repository to make the installation easy and above all secure.</p>
<p>So, run this command.</p>
<pre class="">:~$ sudo zypper addrepo https://download.opensuse.org/repositories/server:database/openSUSE_Leap_15.0/server:database.repo</pre>
<p><figure id="attachment_9170" aria-describedby="caption-attachment-9170" style="width: 1361px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9170" src="https://www.osradar.com/wp-content/uploads/2019/01/2-9.png" alt="2.- Add the external repo" width="1361" height="307" srcset="https://www.osradar.com/wp-content/uploads/2019/01/2-9.png 1361w, https://www.osradar.com/wp-content/uploads/2019/01/2-9-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/2-9-768x173.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/2-9-1024x231.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/2-9-1068x241.png 1068w" sizes="(max-width: 1361px) 100vw, 1361px" /><figcaption id="caption-attachment-9170" class="wp-caption-text">2.- Add the external repo</figcaption></figure></p>
<p>In this command, you are adding the external repository. Now you need to refresh the cache of the repositories.</p>
<pre class="">:~$ sudo zypper refresh</pre>
<p><figure id="attachment_9171" aria-describedby="caption-attachment-9171" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9171" src="https://www.osradar.com/wp-content/uploads/2019/01/3-9.png" alt="3.- Refresh the repository cache" width="1365" height="468" srcset="https://www.osradar.com/wp-content/uploads/2019/01/3-9.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-300x103.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-768x263.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-1024x351.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-1068x366.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/3-9-1225x420.png 1225w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9171" class="wp-caption-text">3.- Refresh the repository cache</figcaption></figure></p>
<p>Finally, install MongoDB.</p>
<pre class="">:~$ sudo zypper in mongodb</pre>
<p><figure id="attachment_9172" aria-describedby="caption-attachment-9172" style="width: 1366px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9172" src="https://www.osradar.com/wp-content/uploads/2019/01/4-10.png" alt="4.- Install MongoDB on OpenSUSE" width="1366" height="309" srcset="https://www.osradar.com/wp-content/uploads/2019/01/4-10.png 1366w, https://www.osradar.com/wp-content/uploads/2019/01/4-10-300x68.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/4-10-768x174.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/4-10-1024x232.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/4-10-1068x242.png 1068w" sizes="(max-width: 1366px) 100vw, 1366px" /><figcaption id="caption-attachment-9172" class="wp-caption-text">4.- Install MongoDB on OpenSUSE</figcaption></figure></p>
<p>And that it.</p>
<h2>3. Use MongoDB to test the installation</h2>
<p>The best way to verify that the installation has been successful is to use MongoDB. So, we will.</p>
<p>First, start the service.</p>
<pre class="">:~$ sudo systemctl start mongodb</pre>
<p>If you want MongoDB starts at the system boot:</p>
<pre class="">:~$ sudo systemctl enable mongodb</pre>
<p><figure id="attachment_9173" aria-describedby="caption-attachment-9173" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9173" src="https://www.osradar.com/wp-content/uploads/2019/01/5-10.png" alt="5.- Start the MongoDB service" width="1365" height="131" srcset="https://www.osradar.com/wp-content/uploads/2019/01/5-10.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/5-10-300x29.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/5-10-768x74.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/5-10-1024x98.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/5-10-1068x102.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9173" class="wp-caption-text">5.- Start the MongoDB service</figcaption></figure></p>
<p>Now, check the service status to see it is properly running.</p>
<pre class="">:~$ sudo systemctl status mongodb</pre>
<p><figure id="attachment_9174" aria-describedby="caption-attachment-9174" style="width: 1060px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9174" src="https://www.osradar.com/wp-content/uploads/2019/01/6-9.png" alt="6.- Check the service status" width="1060" height="341" srcset="https://www.osradar.com/wp-content/uploads/2019/01/6-9.png 1060w, https://www.osradar.com/wp-content/uploads/2019/01/6-9-300x97.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/6-9-768x247.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/6-9-1024x329.png 1024w" sizes="(max-width: 1060px) 100vw, 1060px" /><figcaption id="caption-attachment-9174" class="wp-caption-text">6.- Check the service status</figcaption></figure></p>
<p>Access the MongoDB console and create an administrator user. Because by default, MongoDB does not create a user.</p>
<pre class="">:~$ mongo
</pre>
<p><figure id="attachment_9175" aria-describedby="caption-attachment-9175" style="width: 1364px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9175" src="https://www.osradar.com/wp-content/uploads/2019/01/7-9.png" alt="7.- MongoDB shell" width="1364" height="317" srcset="https://www.osradar.com/wp-content/uploads/2019/01/7-9.png 1364w, https://www.osradar.com/wp-content/uploads/2019/01/7-9-300x70.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/7-9-768x178.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/7-9-1024x238.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/7-9-1068x248.png 1068w" sizes="(max-width: 1364px) 100vw, 1364px" /><figcaption id="caption-attachment-9175" class="wp-caption-text">7.- MongoDB shell</figcaption></figure></p>
<pre class="">use admin 
  db.createUser({ 
  user: "root", 
  pwd: "your_password", 
  roles: [ "root" ] 
  }) 
  exit
</pre>
<p><figure id="attachment_9176" aria-describedby="caption-attachment-9176" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9176" src="https://www.osradar.com/wp-content/uploads/2019/01/8-7.png" alt="8.- Creating a root user" width="1365" height="466" srcset="https://www.osradar.com/wp-content/uploads/2019/01/8-7.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/8-7-300x102.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/8-7-768x262.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/8-7-1024x350.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/8-7-1068x365.png 1068w, https://www.osradar.com/wp-content/uploads/2019/01/8-7-1230x420.png 1230w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9176" class="wp-caption-text">8.- Creating a root user</figcaption></figure></p>
<p><em>Note: Replace your_password with your real password.</em></p>
<p>Next time, you can log in with admin user:</p>
<pre class="">:~$ mongo --authenticationDatabase admin -u root -p</pre>
<p>&nbsp;</p>
<p><figure id="attachment_9177" aria-describedby="caption-attachment-9177" style="width: 1365px" class="wp-caption alignnone"><img loading="lazy" class="size-full wp-image-9177" src="https://www.osradar.com/wp-content/uploads/2019/01/9-6.png" alt="9.- MongoDB shell using password" width="1365" height="327" srcset="https://www.osradar.com/wp-content/uploads/2019/01/9-6.png 1365w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-300x72.png 300w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-768x184.png 768w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-1024x245.png 1024w, https://www.osradar.com/wp-content/uploads/2019/01/9-6-1068x256.png 1068w" sizes="(max-width: 1365px) 100vw, 1365px" /><figcaption id="caption-attachment-9177" class="wp-caption-text">9.- MongoDB shell using a password</figcaption></figure></p>
<p><em>Note</em>: When<em> logging in you must specify the database to which the user has permission. In this case, root has permissions on the admin database. If you don&#8217;t specify it during logging you won&#8217;t be able to access it.</em></p>
<p>&nbsp;</p>
<p>And that&#8217;s it. MongoDB is running correctly on your OpenSUSE 15.</p>
<h2>Conclusion</h2>
<p>As you can see the installation is really simple and only requires a few minutes of dedication. MongoDB is so powerful in its area that it makes it the most logical option within NoSQL databases.</p>
<p>Please share this post with your friends.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-mongodb-opensuse-15/">How to install MongoDB on OpenSUSE 15?</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/install-mongodb-opensuse-15/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
