Skip to content

Instantly share code, notes, and snippets.

@EddiG
Last active April 17, 2018 14:36
Show Gist options
  • Save EddiG/3eaeb8e2968a1967df6e8831d1512991 to your computer and use it in GitHub Desktop.
Save EddiG/3eaeb8e2968a1967df6e8831d1512991 to your computer and use it in GitHub Desktop.
Little instruction of running Elasticsearch on Amazon

Running Elasticsearch on Amazon Machine Image (AMI)

  1. Install the Elasticsearch following this instruction
  2. Install Java sudo yum install java-1.8.0-openjdk
  3. Choose the installed Java version sudo /usr/sbin/alternatives --config java
  4. Install Amazon specific plugin sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install discovery-ec2
  5. Edit configurations in /etc/elasticsearch/
  6. Run the Elasticsearch sudo -i service elasticsearch start
  7. Look at the logs if didn't start /var/logs/elasticsearch/
  8. Add to autostart on reboot sudo chkconfig elasticsearch on (for verifying sudo chkconfig --list)

Useful links

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