Skip to content

Instantly share code, notes, and snippets.

@SalahAdDin
Created August 9, 2016 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SalahAdDin/467e9979fe51a8dc83749ee18757e1c8 to your computer and use it in GitHub Desktop.
Save SalahAdDin/467e9979fe51a8dc83749ee18757e1c8 to your computer and use it in GitHub Desktop.
Installing elasticsearch in Antergos

Install ElasticSearch in Antergos require the next steps:

  1. Install from community repository: sudo pacman -S elasticsearch
  2. Enable ElasticSearch service: sudo systemctl enable elasticsearch
  3. Start ElasticSearch service: sudo systemctl start elasticsearch
  4. Some tweaks configuration:
    a. Change local networks:
    • Open config file: sudo vi /etc/elasticsearch/elasticsearch.yml
    • Uncomment and change this line: network.host: localhost
      b. Enable cross origin acces:
      sudo echo 'http.cors.allow-origin: "/.*/"' >> /etc/elasticsearch/elasticsearch.yml
      sudo echo 'http.cors.enabled: true' >> /etc/elasticsearch/elasticsearch.yml

For server is better download ElasticSearch code file and install manually:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment