elasticsearch学习一:单机安装elasticsearch
【摘要】 源码安装方法useradd eswget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.2.2-linux-x86_64.tar.gzchown es -R /es/su estar -xzf elasticsearch-8.2.2-linux-x86_64.tar.gzmv elasticsearc...
源码安装方法
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/* ./
复制
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:/#
复制
安装成功
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)