Created
December 12, 2022 12:55
-
-
Save Deanout/1b7425af090fd50a58e946464f978606 to your computer and use it in GitHub Desktop.
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
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