ubuntu22.4搭建单节点es8.1

下载对应的包

elasticsearch-8.1.1-linux-x86_64.tar.gz

创建es租户

groupadd elasticsearc

useradd elasticsearch -g elasticsearch -p elasticsearch

chmod u+w /etc/sudoers

chmod -R elasticsearch:elasticsearch elasticsearch

修改配置文件

复制代码
vim /etc/sysctl.conf
vm.max_map_count = 262144
sysctl -p

vim /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536
* soft nproc 4096
* hard nproc 4096

修改环境参数

vim elasticsearch/config/elasticsearch.yml

复制代码
xpack.security.enabled: false
http.cors.enabled: true
http.cors.allow-origin: "*"
path.data: /usr/local/elasticsearch/data
path.logs: /usr/local/elasticsearch/logs

cluster.name: shds
node.name: es2.conf
http.port: 19200
#transport.tcp.port: 19300

#include.type.name: false
network.host: 0.0.0.0
#discovery.seed_providers: file
discovery.seed_hosts: ["10.15.250.240"]
network.publish_host: 10.15.250.240
cluster.initial_master_nodes: ["10.15.250.240"]
node.roles: [data,master,ingest]

启动

复制代码
su Elasticsearch
./bin/elasticsearch -d
相关推荐
ccice0115 分钟前
硬核实战:调用Gemini多模态管道,直击办公中的图表解析、发票识别与自动化脚本生成(国内镜像免费方案)
运维·自动化
爱喝水的鱼丶17 分钟前
SAP-ABAP:数据类型与数据对象(8篇) 第七篇:进阶优化篇——基于类型与对象特征的性能优化技巧
运维·数据库·学习·性能优化·sap·abap·开发交流
DFT计算杂谈32 分钟前
VASP新手入门: IVDW 色散修正参数
linux·运维·服务器·python·算法
qq_3660327844 分钟前
Claude API中转怎么选?简易api下的国内接入与兼容 OpenAI 接口实践
大数据·运维·人工智能
Donk_671 小时前
HAProxy实验搭建
运维·负载均衡
青梅橘子皮1 小时前
Linux---开发工具(2)(makefile、进度条、git、gdb)
linux·运维·服务器
乐观的Terry1 小时前
博客系统全文搜索实战:用 Elasticsearch 告别 MySQL LIKE 查询
mysql·elasticsearch
剑神一笑1 小时前
Linux less 命令深度解析:从源码看分页器的设计智慧
linux·运维·less
李白你好1 小时前
Linux 本地提权工具支持Linux 内核和 Polkit 漏洞
linux·运维·服务器
陳10301 小时前
Linux:System V IPC
linux·运维·服务器