源码安装方法
代码语言:javascript复制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/* ./
代码语言:javascript复制su es
./bin/elasticsearch
测试访问
代码语言:javascript复制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:/#
安装成功
本文为仙士可原创文章,转载无需和我联系,但请注明来自仙士可博客www.php20.cn