- #!/bin/bash
- sudo sysctl -w vm.max_map_count=262144
- sudo apt-get autoremove --purge elasticsearch
- wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
- echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
- sudo apt-get update && sudo apt-get install elasticsearch -y
- sudo service elasticsearch start
|