Skip to content

Instantly share code, notes, and snippets.

@GeorgeDewar
Last active August 29, 2015 14:00
Show Gist options
  • Save GeorgeDewar/0797c825590f076acee5 to your computer and use it in GitHub Desktop.
Save GeorgeDewar/0797c825590f076acee5 to your computer and use it in GitHub Desktop.
Install ElasticSearch on CentOS 6.4
#!/bin/bash
yum install -y java-1.7.0-openjdk
cat > /etc/yum.repos.d/ElasticSearch-1.0.repo <<- EOF
[elasticsearch-1.0]
name=Elasticsearch repository for 1.0.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.0/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
EOF
yum install -y elasticsearch
/sbin/chkconfig --add elasticsearch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment