1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| sed -i 's/^#network.host:.*/network.host: 0.0.0.0/g' /etc/elasticsearch/elasticsearch.yml sed -i 's/^#http.port:.*/http.port: 9200/g' /etc/elasticsearch/elasticsearch.yml
sed -i 's/^xpack.security.enabled:.*/xpack.security.enabled: false/g' /etc/elasticsearch/elasticsearch.yml
echo "-Xms2g" >> /etc/elasticsearch/jvm.options echo "-Xmx2g" >> /etc/elasticsearch/jvm.options
systemctl enable elasticsearch.service --now
curl -X GET localhost:9200 { "name" : "python", "cluster_name" : "elasticsearch", "cluster_uuid" : "GuInJXNZQYy3kvsD1BHfiA", "version" : { "number" : "8.16.0", "build_flavor" : "default", "build_type" : "rpm", "build_hash" : "12ff76a92922609df4aba61a368e7adf65589749", "build_date" : "2024-11-08T10:05:56.292914697Z", "build_snapshot" : false, "lucene_version" : "9.12.0", "minimum_wire_compatibility_version" : "7.17.0", "minimum_index_compatibility_version" : "7.0.0" }, "tagline" : "You Know, for Search" }
|