Skip to content

Instantly share code, notes, and snippets.

@Deanout
Created December 12, 2022 12:55
Show Gist options
  • Save Deanout/1b7425af090fd50a58e946464f978606 to your computer and use it in GitHub Desktop.
Save Deanout/1b7425af090fd50a58e946464f978606 to your computer and use it in GitHub Desktop.
curl -fsSL https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo gpg --dearmor -o /usr/share/keyrings/elastic.gpg
echo "deb [signed-by=/usr/share/keyrings/elastic.gpg] 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 elasticsearch
# You'll need to edit this one twice, once to set the host and port, and once to set xpack security to false.
sudo nano /etc/elasticsearch/elasticsearch.yml
sudo nano /etc/wsl.conf
sudo systemctl start elasticsearch
sudo systemctl enable elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment