Last active
April 23, 2019 22:52
-
-
Save nl5887/b4a56bfd84501c2b2afb to your computer and use it in GitHub Desktop.
install elasticsearch on centos / amazon linux
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
| [elasticsearch-5.x] | |
| name=Elasticsearch repository for 5.x packages | |
| baseurl=http://packages.elastic.co/elasticsearch/5.x/centos | |
| gpgcheck=1 | |
| gpgkey=http://packages.elastic.co/GPG-KEY-elasticsearch | |
| enabled=1 |
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
| rpm --import https://packages.elastic.co/GPG-KEY-elasticsearch | |
| curl https://gist.githubusercontent.com/nl5887/b4a56bfd84501c2b2afb/raw/elasticsearch.repo > /etc/yum.repos.d/elasticsearch.repo | |
| yum update -y | |
| yum install -y elasticsearch | |
| yum install -y java-1.8.0-openjdk | |
| update-alternatives --config java | |
| chkconfig elasticsearch on | |
| cd /opt/ | |
| wget https://download.elastic.co/kibana/kibana/kibana-4.4.2-linux-x64.tar.gz | |
| ln -s /opt/kibana-4.4.2-linux-x64 /opt/kibana | |
| curl https://raw.githubusercontent.com/edgarmartinez922/script/master/init_kibana > /etc/init.d/kibana | |
| chmod +x /etc/init.d/kibana | |
| chkconfig kibana on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment