Skip to content

Instantly share code, notes, and snippets.

@lorentzca
Last active August 29, 2015 14:10
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 lorentzca/358116abb389922bcb99 to your computer and use it in GitHub Desktop.
Save lorentzca/358116abb389922bcb99 to your computer and use it in GitHub Desktop.
elasticsearch and kibana
#!/bin/bash
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 9200 -j ACCEPT
yum install -y java-1.7.0-openjdk wget unzip
rpm -ivh https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.noarch.rpm
chkconfig --add elasticsearch
yum install -y httpd
chkconfig httpd on
service httpd start
wget https://download.elasticsearch.org/kibana/kibana/kibana-3.1.0.zip
unzip kibana-3.1.0.zip
mv kibana-3.1.0/ /var/www/html/kibana/
service elasticsearch start
@lorentzca
Copy link
Author

centos7の場合iptablesの作業要らない

@lorentzca
Copy link
Author

user-dataで流し込むと使える状態で起動(aws, digitalocean等)

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