- Install
# yum install epel-release
# yum install java-1.8.0-openjdk.x86_64
# rpm -ivh elasticsearch-7.9.2-x86_64.rpm
# systemctl enable elasticsearch.service
-Configure
# sed 'a cluster.initial_master_nodes: node-1 \nnetwork.host: 0.0.0.0' /etc/elasticsearch/elasticsearch.yml
# systemctl restart elasticsearch.service
- Verify
# telnet CENTOSIP 9200
Trying 10.11.XX.XX...Connected to 10.11.XX.XX.Escape character is '^]'
# curl -X GET 'http://CENTOSIP:9200'
{ "name" : "My First Node", "cluster_name" : "mycluster1", "cluster_uuid" : "R23U2F87Q_CdkEI2zGhLGw", "version" : { "number" : "7.9.2", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "d34da0ea4a966c4e49417f2da2f244e3e97b4e6e", "build_date" : "2020-09-23T00:45:33.626720Z", "build_snapshot" : false, "lucene_version" : "8.6.2", "minimum_wire_compatibility_version" : "6.8.0", "minimum_index_compatibility_version" : "6.0.0-beta1" }, "tagline" : "You Know, for Search" }