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
相关推荐
risc12345616 分钟前
【Elasticsearch】如何获取一致的评分
elasticsearch
李狗蛋儿啊1 小时前
zero自动化框架搭建---Git安装详解
运维·git·自动化
小金的学习笔记2 小时前
如何在本地和服务器新建mysql用户和密码
运维·服务器·mysql
s_fox_2 小时前
nginx ngx_http_module(7) 指令详解
运维·nginx·http
EasyNVR2 小时前
EasyRTC智能硬件:实时畅联、沉浸互动、消音护航
运维·服务器·网络·安全·音视频·webrtc·p2p
CarryBest3 小时前
Jenkins 环境搭建---基于 Docker
运维·jenkins
若云止水3 小时前
Ubuntu 下 nginx-1.24.0 源码分析 - ngx_process_options
运维·nginx
s_fox_3 小时前
nginx ngx_http_module(9) 指令详解
运维·nginx·http
xing.yu.CTF5 小时前
Web入侵实战分析-常见web攻击类应急处置实验2
运维·服务器·windows·web安全·apache·php漏洞·phpstudy后门漏洞
我们的五年6 小时前
【Linux网络】TCP/IP地址的有机结合(有能力VS100%???),IP地址的介绍
linux·运维·网络·tcp/ip