Last active
October 2, 2015 14:41
-
-
Save merolhack/566f957b6d26e504546b to your computer and use it in GitHub Desktop.
REHL(CentOs & Oracle Linux): Instalación de ElasticSearch
This file contains 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
# Descargar JAVA de la página oficial de Oracle | |
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http://www.oracle.com/; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u51-b16/jre-8u51-linux-x64.rpm" | |
# Instalar paquete RPM | |
rpm -Uvh jre-8u51-linux-x64.rpm | |
# Revisar la versión de JAVA | |
java -version |
This file contains 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
# Importar y habilitar repositorio de Elastic Search | |
rpm --import http://packages.elasticsearch.org/GPG-KEY-elasticsearch | |
nano /etc/yum.repos.d/elasticsearch.repo | |
# Instalar Elastic Search | |
yum install elasticsearch -y | |
# Iniciar Servicio | |
service elasticsearch start | |
# Iniciar servicio al iniciar el sistema | |
chkconfig elasticsearch on |
This file contains 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
# Agregar regla a IPTables para el puerto 9200 | |
iptables -I INPUT 5 -p tcp --dport 9200 -m state --state NEW,ESTABLISHED -j ACCEPT | |
# Guardar regla | |
service iptables save |
This file contains 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
# Prueba de conexión con CURL | |
curl -X GET http://hostname:9200/ |
This file contains 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
# Instalar Plugin Marvel | |
/usr/share/elasticsearch/bin/plugin -i elasticsearch/marvel/latest | |
# Reiniciar servicio | |
service elasticsearch restart | |
# Revisar log | |
tail -f /var/log/elasticsearch/elasticsearch.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment