Install Elasticsearch 9
TIP
Are you tired of complex setup, configuration, backup and update tasks? Let us handle this stuff for you! 🚀
The easiest and often most cost-effective way to operate Zammad is our cloud service. Give it a try with a free trial instance!
This guide shows a simple standard installation of Elasticsearch 9. The intention is to get you up and running quickly. However, in case you need a more advanced configuration or face any issues, have a look at the official Elasticsearch installation documentation. Adapt it wherever needed in case your use-case differs.
Installation
Download and Add the Public Signing Key
Install required tools:
sudo apt-get install apt-transport-httpsAdd repo key:
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elasticsearch-keyring.gpgAdd the Repository
echo "deb [signed-by=/usr/share/keyrings/elasticsearch-keyring.gpg] https://artifacts.elastic.co/packages/9.x/apt stable main" | sudo tee /etc/apt/sources.list.d/elastic-9.x.listInstall Elasticsearch
sudo apt-get update && sudo apt-get install elasticsearchTIP
Make sure to check the output and to copy the password of the built-in superuser. Otherwise, you have to recreate it by running /usr/share/elasticsearch/bin/elasticsearch-reset-password -u elastic.
Configuration
Open /etc/elasticsearch/elasticsearch.yml and adjust/uncomment the following values:
network.host: 0.0.0.0
transport.host: 0.0.0.0Optional to increase the maximum context size to index:
http.max_content_length: 400mbStart and Enable Elasticsearch
sudo systemctl enable elasticsearch.service --nowNext Steps
Go on with the installation of Zammad. After the installation of Zammad is completed, you can connect Zammad with Elasticsearch.