<?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>ravendb Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/ravendb/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Fri, 12 Feb 2021 15:55:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How to install RavenDB on Ubuntu 20.04?</title>
		<link>https://www.osradar.com/install-ravendb-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/install-ravendb-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[angeloma]]></dc:creator>
		<pubDate>Tue, 16 Feb 2021 00:54:00 +0000</pubDate>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[focal]]></category>
		<category><![CDATA[Focal Fossa]]></category>
		<category><![CDATA[NoSQL]]></category>
		<category><![CDATA[ravendb]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=28485</guid>

					<description><![CDATA[<p>Hello, friends. In this post, you will learn how to install RavenDB on Ubuntu 20.04. If you are a developer or you are thinking to start in this world, you will find this post very interesting. RavenDB is a NoSQL database manager written in C#. With a RavenDB database, you can set up a NoSQL [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-ravendb-ubuntu-20-04/">How to install RavenDB 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>Hello, friends. In this post, you will learn how to install RavenDB on Ubuntu 20.04. If you are a developer or you are thinking to start in this world, you will find this post very interesting.</p>



<p><a href="https://ravendb.net/">RavenDB</a> is a NoSQL database manager written in C#. With a RavenDB database, you can set up a NoSQL data architecture or add a NoSQL layer to your current relational database.</p>



<p>Many companies rely on the potential of RavenDB, such as Toyota or Verizon, which gives us an idea of its data management capabilities.</p>



<p>With RavenDB you can handle data in the form of documents like others but with a lot of solvency and with an emphasis on performance. It can also be integrated with relational databases.</p>



<h2 id="install-ravendb-on-ubuntu-20.04"><a href="#install-ravendb-on-ubuntu-20.04" name="install-ravendb-on-ubuntu-20.04"></a>Install RavenDB on Ubuntu 20.04</h2>



<p>Thanks to the great support provided by RavenDB it is possible to install it without much hassle.</p>



<p>So, open a terminal and update APT.</p>



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



<p>Then install the <code>apt-transport-https</code> package that we will need later on.</p>



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



<p>Next, download a Microsoft package to install .NET core.</p>



<pre class="wp-block-preformatted">wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb</pre>



<p>And proceed to install the downloaded package:</p>



<pre class="wp-block-preformatted">sudo apt install ./packages-microsoft-prod.deb</pre>



<p>Refresh APT again to apply the changes to the software sources</p>



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



<p>Now install .NET core:</p>



<pre class="wp-block-preformatted">sudo apt install aspnetcore-runtime-3.1</pre>



<p>After this, we can download RavenDB using <a href="https://www.osradar.com/the-wget-command/">the <code>wget</code> command</a></p>



<pre class="wp-block-preformatted">wget https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest -O ravendb.tar.bz2
--2021-02-12 15:20:32--  https://hibernatingrhinos.com/downloads/RavenDB%20for%20Linux%20x64/latest
Resolving hibernatingrhinos.com (hibernatingrhinos.com)... 35.209.133.255
Connecting to hibernatingrhinos.com (hibernatingrhinos.com)|35.209.133.255|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://daily-builds.s3.amazonaws.com/RavenDB-5.1.4-linux-x64.tar.bz2 [following]
--2021-02-12 15:20:33--  https://daily-builds.s3.amazonaws.com/RavenDB-5.1.4-linux-x64.tar.bz2
Resolving daily-builds.s3.amazonaws.com (daily-builds.s3.amazonaws.com)... 52.217.91.84
Connecting to daily-builds.s3.amazonaws.com (daily-builds.s3.amazonaws.com)|52.217.91.84|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 66149673 (63M) [application/octet-stream]
Saving to: ‘ravendb.tar.bz2’

ravendb.tar.bz2                            100%[=====================================================================================>]  63.08M  1.63MB/s    in 22s     

2021-02-12 15:20:56 (2.84 MB/s) - ‘ravendb.tar.bz2’ saved [66149673/66149673]</pre>



<p>Then, decompress it to a safe location. I will opt for the <code>home</code> directory</p>



<pre class="wp-block-preformatted">tar xvjf ravendb.tar.bz2</pre>



<p>And then assign the corresponding permission.</p>



<p>Inside the generated folder called <code>RavenDB</code> is a file called <code>run.sh</code> that when executed will start the program, but we will make some configurations before.</p>



<h2 id="configuring-ravendb-before-using-it"><a href="#configuring-ravendb-before-using-it" name="configuring-ravendb-before-using-it"></a>Configuring RavenDB before using it</h2>



<p>As I said, if you run that file already RavenDB will run without problems, but it is better to create a new <code>systemd</code> entry for the program.</p>



<p>The main advantage of this is that we will be able to manage RavenDB as a service of the system, so starting it, stopping it, checking its status becomes very easy.</p>



<p>So, let’s do it. Open a new configuration file</p>



<pre class="wp-block-preformatted">sudo nano /etc/systemd/system/ravendb.service</pre>



<p>And inside it, add the following :</p>



<pre class="wp-block-preformatted">[Unit]
Description=RavenDB v4.0
After=network.target

[Service]
LimitCORE=infinity
LimitNOFILE=65536
LimitRSS=infinity
LimitAS=infinity
User=angelo
Restart=on-failure
Type=simple
ExecStart=/home/angelo/RavenDB/run.sh<code data-origin="<pre&gt;<code&gt;[Unit]
Description=RavenDB v4.0
After=network.target

[Service]
LimitCORE=infinity
LimitNOFILE=65536
LimitRSS=infinity
LimitAS=infinity
User=angelo
Restart=on-failure
Type=simple
ExecStart=/home/angelo/RavenDB/run.sh

[Install]
WantedBy=multi-user.target
</code&gt;</pre&gt;
<p&gt;"></code>

<code data-origin="

<pre&gt;<code&gt;[Unit]
Description=RavenDB v4.0
After=network.target

[Service]
LimitCORE=infinity
LimitNOFILE=65536
LimitRSS=infinity
LimitAS=infinity
User=angelo
Restart=on-failure
Type=simple
ExecStart=/home/angelo/RavenDB/run.sh

[Install]
WantedBy=multi-user.target
</code&gt;</pre&gt;
<p&gt;">[Install]
WantedBy=multi-user.target
 </code></pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="876" height="320" src="https://www.osradar.com/wp-content/uploads/2021/02/1-4.png" alt="1.- Configuring the RavenDB service" class="wp-image-28490" srcset="https://www.osradar.com/wp-content/uploads/2021/02/1-4.png 876w, https://www.osradar.com/wp-content/uploads/2021/02/1-4-300x110.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/1-4-768x281.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/1-4-696x254.png 696w" sizes="(max-width: 876px) 100vw, 876px" /><figcaption>1.- Configuring the RavenDB service</figcaption></figure>



<p>Replace the username which in this case is <code>angelo</code>. Save the changes and close the editor.</p>



<p>To apply the changes you have to refresh the list of services.</p>



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



<p>Before starting it we have to know the following, by default, <strong>RavenDB is prepared to run on localhost</strong>. So if you start it, to complete the installation you have to open a web browser and go to <code>http://localhost:41105</code> but there are cases where it is convenient to run RavenDB on a server. <strong>If this is your case, then you have to configure some more things.</strong></p>



<p>The RavenDB configuration file is very simple so open it but before modifying it <strong>create a backup</strong></p>



<pre class="wp-block-preformatted">cp ~/RavenDB/Server/settings.json ~/RavenDB/Server/settings.json.bak
sudo nano ~/RavenDB/Server/settings.json</pre>



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



<pre class="wp-block-preformatted">{
    "<span class="hljs-attribute">ServerUrl</span>": <span class="hljs-value"><span class="hljs-string">"http://159.69.48.203:8080"</span></span>,
    "<span class="hljs-attribute">Setup.Mode</span>": <span class="hljs-value"><span class="hljs-string">"Unsecured"</span></span>,
    "<span class="hljs-attribute">DataDir</span>": <span class="hljs-value"><span class="hljs-string">"RavenData"</span></span>,
    "<span class="hljs-attribute">Security.UnsecuredAccessAllowed</span>": <span class="hljs-value"><span class="hljs-string">"PublicNetwork"</span></span>,
    "<span class="hljs-attribute">ServerUrl.Tcp</span>": <span class="hljs-value"><span class="hljs-string">"tcp://159.69.48.203:38888"</span>
</span>}</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="973" height="246" src="https://www.osradar.com/wp-content/uploads/2021/02/2-2.png" alt="2.- Configuring RavenDB" class="wp-image-28491" srcset="https://www.osradar.com/wp-content/uploads/2021/02/2-2.png 973w, https://www.osradar.com/wp-content/uploads/2021/02/2-2-300x76.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/2-2-768x194.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/2-2-696x176.png 696w" sizes="(max-width: 973px) 100vw, 973px" /><figcaption>2.- Configuring RavenDB</figcaption></figure>



<p>Replace <code>127.0.0.1</code> with the IP address of your server.</p>



<p>Save the changes and close the editor. Now start RavenDB</p>



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



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



<pre class="wp-block-preformatted">sudo systemctl status ravendb
● ravendb.service - RavenDB v4.0
     Loaded: loaded (/etc/systemd/system/ravendb.service; enabled; vendor preset: enabled)
     Active: active (running) since Fri 2021-02-12 15:35:14 CET; 4s ago
   Main PID: 5839 (run.sh)
      Tasks: 24 (limit: 4567)
     Memory: 61.5M
     CGroup: /system.slice/ravendb.service
             ├─5839 /bin/bash /home/angelo/RavenDB/run.sh
             └─5876 ./Raven.Server --browser

Feb 12 15:35:16 osradar run.sh[5876]:       | |__) |__ ___   _____ _ __ | |  | | |_) |
Feb 12 15:35:16 osradar run.sh[5876]:       |  _  // _` \ \ / / _ \ '_ \| |  | |  _ &lt;
Feb 12 15:35:16 osradar run.sh[5876]:       | | \ \ (_| |\ V /  __/ | | | |__| | |_) |
Feb 12 15:35:16 osradar run.sh[5876]:       |_|  \_\__,_| \_/ \___|_| |_|_____/|____/
Feb 12 15:35:16 osradar run.sh[5876]:       Safe by default, optimized for efficiency
Feb 12 15:35:16 osradar run.sh[5876]:  Build 51016, Version 5.1, SemVer 5.1.4, Commit f8d499a
Feb 12 15:35:16 osradar run.sh[5876]:  PID 5876, 64 bits, 2 Cores, Phys Mem 3.75 GBytes, Arch: X64
Feb 12 15:35:16 osradar run.sh[5876]:  Source Code (git repo): https://github.com/ravendb/ravendb
Feb 12 15:35:16 osradar run.sh[5876]:  Built with love by Hibernating Rhinos and awesome contributors!
Feb 12 15:35:16 osradar run.sh[5876]: +---------------------------------------------------------------+
</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="937" height="392" src="https://www.osradar.com/wp-content/uploads/2021/02/3-1.png" alt="3.- Service status" class="wp-image-28492" srcset="https://www.osradar.com/wp-content/uploads/2021/02/3-1.png 937w, https://www.osradar.com/wp-content/uploads/2021/02/3-1-300x126.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/3-1-768x321.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/3-1-696x291.png 696w" sizes="(max-width: 937px) 100vw, 937px" /><figcaption>3.- Service status</figcaption></figure>



<p>So, let&#8217;s complete the installation.</p>



<h2 id="running-ravendb"><a href="#running-ravendb" name="running-ravendb"></a>Running RavenDB</h2>



<p>Now open a web browser and if you configured RavenDB to run on a server, go to <code>http://server-ip:8080/eula/index.html</code> you will see the following:</p>



<p>On this screen, you have to accept the license terms.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1360" height="669" src="https://www.osradar.com/wp-content/uploads/2021/02/4-1024x504.png" alt="4.- License Agreement" class="wp-image-28493" srcset="https://www.osradar.com/wp-content/uploads/2021/02/4-1024x504.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/4-300x148.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/4-768x378.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/4-696x342.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/4-1068x525.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/4.png 1360w" sizes="(max-width: 1360px) 100vw, 1360px" /><figcaption>4.- License Agreement</figcaption></figure>



<p>Then, as we have configured RavenDB from its configuration file we will be able to access the dashboard.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="1024" height="502" src="https://www.osradar.com/wp-content/uploads/2021/02/5-1024x502.png" alt="5.- RavenDB main screen on Ubuntu 20.04" class="wp-image-28494" srcset="https://www.osradar.com/wp-content/uploads/2021/02/5-1024x502.png 1024w, https://www.osradar.com/wp-content/uploads/2021/02/5-300x147.png 300w, https://www.osradar.com/wp-content/uploads/2021/02/5-768x376.png 768w, https://www.osradar.com/wp-content/uploads/2021/02/5-696x341.png 696w, https://www.osradar.com/wp-content/uploads/2021/02/5-1068x523.png 1068w, https://www.osradar.com/wp-content/uploads/2021/02/5.png 1366w" sizes="(max-width: 1024px) 100vw, 1024px" /><figcaption>5.- RavenDB main screen on Ubuntu 20.04</figcaption></figure>



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



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



<p>RavenDB is a professionally supported database manager that gives us the option to have an alternative to serious projects. That is why it is a good idea to know how to install it and from there to learn how to use it.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/install-ravendb-ubuntu-20-04/">How to install RavenDB 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/install-ravendb-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
