Installeren op Ubuntu
How to install an Elasticsearch server?
Source
- Start with a stock Ubuntu 16 LTS server
- Install Java 10
- Add java repository
sudo apt install software-properties-common apt-transport-https
sudo add-apt-repository ppa:linuxuprising/java
sudo apt update
sudo apt install oracle-java10-installer
Install Elasticsearch
- Add repositories and perquisites
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
sudo apt update
sudo apt install elasticsearch
- Start Elasticsearch on boot
sudo systemctl enable elasticsearch.service
- Copy default configuration file
cd /etc/elasticsearch
cp elasticsearch.yml elasticsearch.yml.original
Edit configuration file
vim /etc/elasticsearch/elasticsearch.yml
Update values
cluster.name: your-client-name
node.name: es0
network.host: 0.0.0.0
Restart Elasticsearch
$ sudo systemctl restart elasticsearch
- Add SSH and Elasticsearch ports
ufw allow 22
ufw allow 9200