Installing Elasticsearch
October 8, 2024
To install Elasticsearch:
- Unzip the Elasticsearch version that you downloaded earlier and edit the config/elasticsearch.yml file.
vi config/elasticsearch.yml
- Add the following lines to the file.
transport.tcp.port: 9300 http.cors.allow-origin: "*" http.cors.enabled: true
- Specify a unique cluster name for your Elasticsearch instances to avoid conflicts with other Elasticsearch instances on the network. For example, specify
ciohybris
as shown in the following example.cluster.name: ciohybris
- Start Elasticsearch.
./bin/elasticsearch
Elasticsearch is now running. You can access it at http://localhost:9200 in your web browser.
To be able to browse your index, you should install the ElasticSearch Head Chrome extension.