Installation Instructions

Linux Setup (Ubuntu / RHEL)

Step 1: Download Elasticsearch

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-9.x.x-linux-x86_64.tar.gz

Step 2: Extract the Archive

tar -xzf elasticsearch-9.x.x-linux-x86_64.tar.gz
cd elasticsearch-9.x.x

Step 3: Configure Elasticsearch

Edit config/elasticsearch.yml

cluster.name: elasticsearch-cluster node.name: node-1 network.host: 0.0.0.0 http.port: 9200 discovery.type: single-node

Step 4: Start Elasticsearch

./bin/elasticsearch

Step 5: Verify Installation

curl http://localhost:9200

Windows Setup

Step 1: Download Elasticsearch

  • Download the Windows ZIP from Elastic official site

Step 2: Extract ZIP File

  • Extract to a directory (example: C:\elasticsearch)

Step 3: Configure Elasticsearch

Edit config\elasticsearch.yml

cluster.name: elasticsearch-cluster node.name: node-1 network.host: localhost http.port: 9200 discovery.type: single-node

Step 4: Start Elasticsearch

Step 5: Verify Installation

Open browser or Postman: (Use the password that was automatically generated in the terminal)

Docker Setup

Step 1: Create docker-compose.yml

version: '3.8'

services: elasticsearch: image: docker.elastic.co/elasticsearch/elasticsearch:9.2.4 container_name: amrit-elasticsearch environment: - discovery.type=single-node - xpack.security.enabled=true - xpack.security.http.ssl.enabled=false - ELASTIC_PASSWORD=Password - "ES_JAVA_OPTS=-Xms1g -Xmx1g" ports: - "9200:9200" - "9300:9300" volumes: - es-data:/usr/share/elasticsearch/data networks: - elastic

kibana: image: docker.elastic.co/kibana/kibana:9.2.4 container_name: amrit-kibana environment: - ELASTICSEARCH_HOSTS=http://elasticsearch:9200 - ELASTICSEARCH_USERNAME=elastic - ELASTICSEARCH_PASSWORD=Password ports: - "5601:5601" depends_on: - elasticsearch networks: - elastic

volumes: es-data: driver: local

networks: elastic: driver: bridge

Step 2: Start Elasticsearch Container

Step 3: Verify Installation

Last updated