Last active
August 29, 2015 14:10
-
-
Save lorentzca/358116abb389922bcb99 to your computer and use it in GitHub Desktop.
elasticsearch and kibana
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 | |
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 |
user-dataで流し込むと使える状態で起動(aws, digitalocean等)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
centos7の場合iptablesの作業要らない