Last active
August 29, 2015 14:00
-
-
Save GeorgeDewar/0797c825590f076acee5 to your computer and use it in GitHub Desktop.
Install ElasticSearch on CentOS 6.4
This file contains hidden or 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
#!/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