Skip to content

Instantly share code, notes, and snippets.

@merolhack
Last active October 2, 2015 14:41
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 merolhack/566f957b6d26e504546b to your computer and use it in GitHub Desktop.
Save merolhack/566f957b6d26e504546b to your computer and use it in GitHub Desktop.
REHL(CentOs & Oracle Linux): Instalación de ElasticSearch
# 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
# 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
# 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
# Prueba de conexión con CURL
curl -X GET http://hostname:9200/
# 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