源码安装方法
useradd es wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.2.2-linux-x86_64.tar.gz chown es -R /es/ su es tar -xzf elasticsearch-8.2.2-linux-x86_64.tar.gz mv elasticsearch-8.2.2/* ./ ``````bash su es ./bin/elasticsearch
测试访问
curl --cacert $ES\_HOME/config/certs/http\_ca.crt -u elastic https://localhost:9200 # 输入安装成功时记录的密码 Enter host password for user 'elastic': { "name" : "7459bb5e26cf", "cluster_name" : "elasticsearch", "cluster_uuid" : "sCJJK-mbRMi81vbtMjEbwg", "version" : { "number" : "8.2.2", "build_flavor" : "default", "build_type" : "deb", "build_hash" : "9876968ef3c745186b94fdabd4483e01499224ef", "build_date" : "2022-05-25T15:47:06.259735307Z", "build_snapshot" : false, "lucene_version" : "9.1.0", "minimum\_wire\_compatibility_version" : "7.17.0", "minimum\_index\_compatibility_version" : "7.0.0" }, "tagline" : "You Know, for Search" } root@7459bb5e26cf:/#
安装成功