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
相关推荐
阑梦清川18 小时前
es的docker部署和docker相关的可可视化面板工具介绍
大数据·elasticsearch·docker
码农-小林18 小时前
使用leaflet库加载服务器离线地图瓦片(这边以本地nginx服务器为例)
运维·服务器·nginx
噜啦噜啦嘞好19 小时前
Linux:库制作与原理
linux·运维·服务器
androidstarjack19 小时前
知乎服务器崩溃!
运维·服务器
刘某的Cloud19 小时前
磁盘-IO
linux·运维·系统·磁盘io
Mr_LiYYD19 小时前
elasticsearch数据迁移
大数据·elasticsearch·搜索引擎
我狸才不是赔钱货20 小时前
容器:软件世界的标准集装箱
linux·运维·c++·docker·容器
dalianwawatou20 小时前
GitLab 代码基础操作清单
大数据·elasticsearch·gitlab
zxsz_com_cn20 小时前
设备健康管理大数据平台:工业智能化的核心数据引擎
运维·人工智能
呉師傅20 小时前
关于联想ThinkCentre M950t-N000 M大师电脑恢复预装系统镜像遇到的一点问题
运维·网络·windows·电脑