ES elasticsearch 7.10安装部署
发布日期:2021-06-30 21:31:45
浏览次数:3
分类:技术文章
本文共 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 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
网站不错 人气很旺了 加油
[***.192.178.218]2024年05月01日 14时25分56秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
性能测试需求分析
2019-05-01
性能测试需求评审
2019-05-01
性能测试实施流程
2019-05-01
Jmeter在多线程当中对某个http请求进行循环读取配置文件
2019-05-01
Python读取配置文件中文乱码问题
2019-05-01
用python openpyxl模块操作excel
2019-05-01
python新建的xlsx打不开
2019-05-01
Python创建一个空白的xlsx文件
2019-05-01
Python当中strip()函数的使用方法
2019-05-01
FIT2CLOUD飞致云旗下开源项目DataEase成功进入GitHub趋势榜主榜
2019-05-01
简单shell命令行解释器的设计与实现
2019-05-01
接口自动化怎么获取post传参类型
2019-05-01
PTA-浙大版 《Python程序设计》 第四章编程题目及答案
2019-05-01
(Course类)改写程序清单10-6中的Course类,使用ArrayList代替数组来存储学生。不改变Course类之前的合约(即构造方法和方法的定义都不改变)-课本387页11.5;
2019-05-01
顺序表操作集(插入删除查找等)[C语言版]【完整可编译】
2019-05-01
顺序表操作集C语言详解版完整可编译
2019-05-01