Created
May 29, 2020 12:02
-
-
Save defaye/a9a2558aacc052a3f5324e31e092c9ab to your computer and use it in GitHub Desktop.
Install ElasticSearch on Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-18-04 | |
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list | |
sudo apt update && sudo apt install -y elasticsearch | |
sudo sed -i -E "s/^\#?network\.host:\s+.*$/network.host: localhost/" /etc/elasticsearch/elasticsearch.yml | |
sudo service elasticsearch start # start as a service | |
systemctl list-units --type service | grep elasticsearch # check it is active and enabled on boot # https://askubuntu.com/questions/912216/16-04-command-to-list-all-services-started-on-boot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To run this command in one line: