snipt

Ctrl+h for KB shortcuts

Bash

ubuntu > install elasticsearch

1
2
3
4
5
6
7
8
9
# install jre
$ sudo apt-get install default-jre

# install elasticsearch
$ wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch | sudo apt-key add -
$ sudo add-apt-repository "deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main"
$ sudo apt-get update && sudo apt-get install elasticsearch
$ sudo update-rc.d elasticsearch defaults 95 10
$ sudo service elasticsearch start
https://snipt.net/embed/83ed4811fcc4547c7c7a9ee67b7d85c8/
/raw/83ed4811fcc4547c7c7a9ee67b7d85c8/
83ed4811fcc4547c7c7a9ee67b7d85c8
bash
Bash
10
2019-06-26T22:08:34
True
False
False
Jun 23, 2015 at 04:27 PM
/api/public/snipt/137893/
ubuntu-install-elasticsearch-2ada9302
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a> <a href="#L-9">9</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># install jre</span> </span><span id="L-2"><a name="L-2"></a>$ sudo apt-get install default-jre </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="c1"># install elasticsearch</span> </span><span id="L-5"><a name="L-5"></a>$ wget -qO - https://packages.elasticsearch.org/GPG-KEY-elasticsearch <span class="p">|</span> sudo apt-key add - </span><span id="L-6"><a name="L-6"></a>$ sudo add-apt-repository <span class="s2">&quot;deb http://packages.elasticsearch.org/elasticsearch/1.4/debian stable main&quot;</span> </span><span id="L-7"><a name="L-7"></a>$ sudo apt-get update <span class="o">&amp;&amp;</span> sudo apt-get install elasticsearch </span><span id="L-8"><a name="L-8"></a>$ sudo update-rc.d elasticsearch defaults <span class="m">95</span> 10 </span><span id="L-9"><a name="L-9"></a>$ sudo service elasticsearch start </span></pre></div> </td></tr></table>
elasticsearch, java, rc.d, search, ubuntu