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
相关推荐
CookieCrusher2 小时前
数据泄露危机逼近:五款电脑加密软件为企业筑起安全防线
运维·数据库·windows·安全·文件加密·数据防泄漏·dlp
boonya4 小时前
Elasticsearch核心原理与面试总结
大数据·elasticsearch·面试
小薛博客4 小时前
17、DevOps持续集成、持续部署
运维·ci/cd·devops
77qqqiqi4 小时前
安装es和kibana
elasticsearch·kibana
霍格沃兹软件测试开发4 小时前
Browser Use:打造你的浏览器自动化助手
运维·自动化
fuyongliang1236 小时前
linux Nginx服务配置介绍,和配置流程
运维·服务器·网络
LQ深蹲不写BUG7 小时前
ElasticSearch 基础内容深度解析
大数据·elasticsearch·搜索引擎
2501_920047037 小时前
git在Linux中的使用
linux·git·elasticsearch
UNbuff_08 小时前
Linux bzip2 命令使用说明
linux·运维·服务器
IOT-Power8 小时前
Ubuntu下把 SD 卡格式化为 FAT32
linux·运维·ubuntu