Facebooktwittergoogle_plusredditpinterestlinkedinmail

Install Elasticsearch using Repositories

You can easily install Elasticsearch using APT and YUM repository
Install Elasticsearch Using APT repository
Install Elasticsearch Using Yum repository

Install Elasticsearch 5.0 on Debian:

Step 1: Download and Install Elasticsearch Public signin key

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

Step 2: Installation using APT Repository
Install the apt-transport-https package on Debian before installation.

sudo apt-get install apt-transport-https

Save the repository definition to /etc/apt/sources.list.d/elastic-5.x.list:

echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list

Step 3: Run apt-get update and the repository is ready for use.

sudo apt-get update

Step 4: Install Elasticsearch

sudo apt-get install elasticsearch

Step 5: Add Elasticsearch to start at booting

sudo update-rc.d elasticsearch defaults 95 10

Elasticsearch can be started and stopped using the service command:

sudo -i service elasticsearch start
sudo -i service elasticsearch stop

Install Elasticsearch on CentOS/ Fedora/ RHEL

Step 1: Download and install public key

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

Step 2: Add yum repository in /etc/yum.repos.d/ directory. I have added elastic.repo

[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

Step 3: Install Elasticsearch using yum

yum install elasticsearch

Step 4: Add Elasticsearch to start at booting
If distribution is using SysV init

chkconfig --add elasticsearch

Elasticsearch can be started and stopped using the service command:

sudo -i service elasticsearch start
sudo -i service elasticsearch stop

If your distribution is using systemd:

sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
Install Elasticsearch using Repositorieshttp://techieroop.com/wp-content/uploads/2015/04/install-elasticsearch-using-repository.jpghttp://techieroop.com/wp-content/uploads/2015/04/install-elasticsearch-using-repository-150x127.jpg Roopendra Elasticsearch,,
Install Elasticsearch using Repositories You can easily install Elasticsearch using APT and YUM repository - Install Elasticsearch Using APT repository - Install Elasticsearch Using Yum repository Install Elasticsearch 5.0 on Debian: Step 1: Download and Install Elasticsearch Public signin key wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - Step 2: Installation using APT Repository Install...
<h3>Install Elasticsearch using Repositories</h3> You can easily install Elasticsearch using APT and YUM repository - <a href="#apt">Install Elasticsearch Using APT repository</a> - <a href="#yum">Install Elasticsearch Using Yum repository </a> <h3 id="apt">Install Elasticsearch 5.0 on Debian:</h3> <strong>Step 1:</strong> Download and Install Elasticsearch Public signin key <pre>wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -</pre> <strong>Step 2:</strong> Installation using APT Repository Install the apt-transport-https package on Debian before installation. <pre>sudo apt-get install apt-transport-https</pre> Save the repository definition to <strong>/etc/apt/sources.list.d/elastic-5.x.list</strong>: <pre>echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list</pre> <strong>Step 3:</strong> Run <strong>apt-get update</strong> and the repository is ready for use. <pre>sudo apt-get update</pre> <strong>Step 4:</strong> Install Elasticsearch <pre>sudo apt-get install elasticsearch</pre> <strong>Step 5:</strong> Add Elasticsearch to start at booting <pre>sudo update-rc.d elasticsearch defaults 95 10</pre> Elasticsearch can be started and stopped using the service command: <pre>sudo -i service elasticsearch start sudo -i service elasticsearch stop</pre> <h3 id="yum">Install Elasticsearch on <strong>CentOS/ Fedora/ RHEL</strong></h3> <strong>Step 1:</strong> Download and install public key <pre>rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch</pre> <strong>Step 2:</strong> Add yum repository in <strong>/etc/yum.repos.d/</strong> directory. I have added elastic.repo <pre>[elasticsearch-5.x] name=Elasticsearch repository for 5.x packages baseurl=https://artifacts.elastic.co/packages/5.x/yum gpgcheck=1 gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch enabled=1 autorefresh=1 type=rpm-md</pre> <strong>Step 3:</strong> Install Elasticsearch using yum <pre>yum install elasticsearch</pre> <strong>Step 4:</strong> Add Elasticsearch to start at booting If distribution is using SysV init <pre>chkconfig --add elasticsearch</pre> Elasticsearch can be started and stopped using the service command: <pre>sudo -i service elasticsearch start sudo -i service elasticsearch stop</pre> If your distribution is using systemd: <pre>sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable elasticsearch.service</pre>
(Visited 375 times, 13 visits today)
Facebooktwittergoogle_pluslinkedinrss