Monday, June 22, 2015

Install Elasticsearch on Centos 7.1


  1. Download Current Java Runtime Environment from: http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html
  2. sudo rpm -Uvh jre-8u45-linux-x64.rpm
  3. java -version
  4. sudo rpm -Uvh https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.6.0.noarch.rpm
  5. Define network.host: localhost in /etc/elasticsearch/elasticsearch.yml
  6. sudo systemctl daemon-reload
  7. sudo systemctl enable elasticsearch.service
  8. sudo systemctl start elasticsearch.service
  9. Execute curl -XGET 'http://localhost:9200/_cluster/health?pretty=true' to make sure the server is up and running

No comments: