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
相关推荐
Huangjin007_13 分钟前
【Linux 系统篇(二十九)】文件(六):动静态库制作
linux·运维·服务器
kida_yuan15 分钟前
【岁月留声】知识库检索能力演进史
人工智能·elasticsearch
%KT%17 分钟前
ubuntu系统部署docker
运维·docker·容器
陈聪.18 分钟前
01-项目一_企业级高可用Web集群实施手册
运维·云原生
随性而行36018 分钟前
企业微信API调用案例:如何通过接口实现多账号统一管理与业务接入?
运维·微信·机器人·自动化·企业微信
Aoiner18 分钟前
模型部署笔记
大数据·elasticsearch·搜索引擎
guo_wen_qiang30 分钟前
云服务器redis主从复制-哨兵模式
运维·服务器·redis
运维小文36 分钟前
apache nifi 2.90部署+运维手册
大数据·运维·数据分析·apache·nifi
2603_9651481139 分钟前
终极清单:构建自动化选品比价系统的所有组件与资源
大数据·运维·数据库·数据挖掘·自动化
北城笑笑40 分钟前
Server 18 ,Nginx 双服务器 HTTP转HTTPS 代理实战( HTTP 地址换 HTTPS 域名 )
运维·服务器·前端·后端·nginx·http·https