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
相关推荐
EverydayJoy^v^3 小时前
RH134学习进程——十二.运行容器(1)
linux·运维·容器
b***25113 小时前
电池组PACK自动化生产线的关键流程与核心优势
运维·自动化
哲伦贼稳妥5 小时前
职场发展-遇到以下情况请直接准备后手吧
运维·经验分享·其他·职场和发展
Exquisite.5 小时前
企业高性能web服务器(4)
运维·服务器·前端·网络·mysql
北塔软件5 小时前
北塔方案 | 政府行业IT运维解决方案
运维·it运维·解决方案·政务
cg_ssh6 小时前
Docker 下启动 Nacos 3.1.1 单机模式
运维·docker·容器
修己xj6 小时前
使用 Docker 部署 SQL Server 并导入 .mdb 文件的完整指南
运维·docker·容器
郝亚军8 小时前
ubuntu-18.04.6-desktop-amd64安装步骤
linux·运维·ubuntu
Web极客码8 小时前
CentOS 7.x如何快速升级到CentOS 7.9
linux·运维·centos
一位赵8 小时前
小练2 选择题
linux·运维·windows