<?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 installation guide ubuntu Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/mongodb-installation-guide-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 03 Nov 2020 22:40:39 +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 Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-mongodb-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-mongodb-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Thu, 05 Nov 2020 04:37:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OpenSource]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[how to install MongoDB on Ubuntu 20.04]]></category>
		<category><![CDATA[Mongodb installation guide ubuntu]]></category>
		<category><![CDATA[ubuntu 20.04 mongodb]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=23206</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install MongoDB on Ubuntu 20.04. MongoDB is open-source used in different advanced web applications in order to manage the data in Database. Here we&#8217;ll go through with some steps that help us to install MongoDB on Step 1: Update Your System First of all, as usual [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-on-ubuntu-20-04/">How To Install MongoDB On Ubuntu 20.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 we are going to learn that <a href="https://www.osradar.com/?p=23206" target="_blank" rel="noreferrer noopener">how to install MongoDB on Ubuntu 20.04</a>. MongoDB is open-source used in different advanced web applications in order to manage the data in Database. Here we&#8217;ll go through with some steps that help us to install MongoDB on </p>



<h2>Step 1: Update Your System</h2>



<p>First of all, as usual we do, update your system to have the latest updates installed before installing any new package. So, hit the below command.</p>



<pre class="wp-block-verse">sudo apt update &amp;&amp; sudo apt upgrade -y</pre>



<p>Once the update done, reboot your system.</p>



<pre class="wp-block-verse">sudo reboot</pre>



<h2>Step 2: Install MongoDB On Ubuntu 20.04</h2>



<p>As the Ubuntu Official repository doesn&#8217;t have the latest version of the MongoDB, so in order to install the latest version, we&#8217;ve to install it manually. Currently the latest stable releases of MongoDB is 4.4, so we&#8217;ll install it on our system. Simply follow the below steps for an easy and optimal installation.</p>



<p>Now, to import the GPG key hit the below command.</p>



<pre class="wp-block-verse">sabi@Ubuntu20:~$ wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -<br>[sudo] password for sabi:<br>OK</pre>



<p>You&#8217;ll get the <strong>&#8220;Ok&#8221;</strong> message as output if it is successfull. If you face any error retry adding the key or hit the below command to install gnupg (for gnupg error).</p>



<pre class="wp-block-verse">sudo apt-get install gnupg</pre>



<p>Once it is installed, hit the following command to import the GPG key.</p>



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



<h2>Step 3: Create A List File For MongoDB Package</h2>



<p>Create the list file in the <strong>/etc/apt/sources.list.d/</strong> directory for Ubuntu 20.04.</p>



<pre class="wp-block-verse">echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list</pre>



<p>And then update the system again.</p>



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



<h2>Step 4: Install MongoDB </h2>



<p>Finally hit the below command to install the MongoDB 4.4 on your Ubuntu system.</p>



<pre class="wp-block-verse">sudo apt install -y mongodb-org
</pre>



<h2>Step 5: Start &amp; Enable MongoDB Services</h2>



<p>After the installation process, start and enable the MongoDB services to run at the startup.</p>



<p>To start the MongoDB, hit below command.</p>



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



<p>And enable the MongoDB to start on boot type the following command in your terminal.</p>



<pre class="wp-block-verse">sudo systemctl enalbe mongod</pre>



<p>ARestart the MongoDB services by</p>



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



<p>Check the current status of MongoDB by typing</p>



<pre class="wp-block-verse">sabi@Ubuntu20:~$ sudo systemctl status mongod
● mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor prese&gt;
Active: active (running) since Thu 2020-10-29 13:59:54 PKT; 56s ago
Docs: https://docs.mongodb.org/manual
Main PID: 38663 (mongod)
Memory: 160.6M
CGroup: /system.slice/mongod.service
└─38663 /usr/bin/mongod --config /etc/mongod.conf
اکتوبر 29 13:59:54 Ubuntu20 systemd[1]: Started MongoDB Database Server.
lines 1-10/10 (END)</pre>



<p>Stop the MongoDB with the help of below command</p>



<pre class="wp-block-verse">sudo systemctl stop mongod</pre>



<p>To disable the MongoDB on startup, type the following command in your terminal.</p>



<pre class="wp-block-verse">sudo systemctl disable mongod</pre>



<p>So, this is how you can install MongoDB on Ubuntu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-mongodb-on-ubuntu-20-04/">How To Install MongoDB On Ubuntu 20.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/how-to-install-mongodb-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
