ES elasticsearch 7.10安装部署
发布日期:2021-06-30 21:31:45 浏览次数:2 分类:技术文章

本文共 1700 字,大约阅读时间需要 5 分钟。

下载安装

#进入安装目录cd /opt#下载安装包,300多Mwget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.10.1-linux-x86_64.tar.gz# 解压tar -zxvf elasticsearch-7.10.1-linux-x86_64.tar.gz# 进入es根目录cd elasticsearch-7.10.1

 

配置

  • 修改配置文件
vim config/elasticsearch.yml#集群名词cluster.name: lizz-application# 本节点名词node.name: node-1# 服务ip,0表示所有本地ipnetwork.host: 0.0.0.0# 服务端口号http.port: 9200 # es节点列表,集群时配置多个,数组discovery.seed_hosts: ["127.0.0.1"]# es启动时,参数选主的node列表,集群时配置多个cluster.initial_master_nodes: ["node-1"]

启动

  • 启动es 
bin/elasticsearch#启动失败异常java.lang.RuntimeException: can not run elasticsearch as root
  • 创建esuser用户,参考
  • 切换用户成功
sudo su esuser[sudo] esuser 的密码:
  • 再次启动异常
bin/elasticsearch[1]: max number of threads [3882] for user [esuser] is too low, increase to at least [4096][2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144][3]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured

  • 再次启动,增加-d后台启动,防止推出时自动环比

 

bin/elasticsearch -d
  • 查看启动日志,文件名词与cluster.name名一致。
tailf logs/lizz-application.log

  • 启动成功,查看服务
curl http://127.0.0.1:9200/{  "name" : "node-1",  "cluster_name" : "lizz-application",  "cluster_uuid" : "1ZwW2lw2RUKhqM9F1Bhu-A",  "version" : {    "number" : "7.10.1",    "build_flavor" : "default",    "build_type" : "tar",    "build_hash" : "1c34507e66d7db1211f66f3513706fdf548736aa",    "build_date" : "2020-12-05T01:00:33.671820Z",    "build_snapshot" : false,    "lucene_version" : "8.7.0",    "minimum_wire_compatibility_version" : "6.8.0",    "minimum_index_compatibility_version" : "6.0.0-beta1"  },  "tagline" : "You Know, for Search"}

 

 

 

 

转载地址:https://lizz6.blog.csdn.net/article/details/112482790 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:Linux用户管理添加/删除用户
下一篇:Mysql 修改密码安全等级:ERROR 1819 (HY000) Your password does not satisfy the current policy requirements

发表评论

最新留言

表示我来过!
[***.240.166.169]2024年04月26日 14时19分19秒

关于作者

    喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!

推荐文章