search - How to install Elasticsearch on 16.04 LTs - Ask Ubuntu
i have ubuntu 16.04 lts on virtual box , i'd install elasticsearch
in order use ruby on rails. i've done search on google on how installation, have found mutiple guides have few differences got me little bit confused, instance:
installing elasticsearch on ubuntu 16.04
digital ocean: install , configure elasticsearch on ubuntu 16.04
(see @ prerequisites)
how should install elasticsearch safely, without messing development environment?
elastic has own guide install elasticsearch debian packages. can find on website.
https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html
i used 1 , works charm.
elasticsearch requires java 8 or later:
$ sudo apt-get install openjdk-8-jdk $ java -version openjdk version "1.8.0_111"
install elasticsearch
$ wget -qo - https://artifacts.elastic.co/gpg-key-elasticsearch | sudo apt-key add - $ sudo apt-get install apt-transport-https $ echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list $ sudo apt-get update && sudo apt-get install elasticsearch
some remarks (from elastic website):
- do not use
add-apt-repository
add deb-src entry well, not provide source package. if have added deb-src entry, see error following:
unable find expected entry 'main/source/sources' in release file wrong sources.list entry or malformed file)
=> delete deb-src entry /etc/apt/sources.list file , installation should work expected.
- if 2 entries exist same elasticsearch repository, see error during apt-get update:
duplicate sources.list entry https://artifacts.elastic.co/packages/5.x/apt/ ...`
=> examine /etc/apt/sources.list.d/elasticsearch-5.x.list
duplicate entry or locate duplicate entry amongst files in /etc/apt/sources.list.d/
, /etc/apt/sources.list
file
Comments
Post a Comment