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
相关推荐
Elasticsearch25 分钟前
节省 90% 存储!源码级揭秘腾讯云 ES 向量搜索的优化之道
elasticsearch
文牧之1 小时前
Oracle 的 SEC_CASE_SENSITIVE_LOGON 参数
运维·数据库·oracle
Antonio9152 小时前
【Linux】 Linux 进程控制
linux·运维·服务器
thinkMoreAndDoMore3 小时前
linux驱动开发(1)-内核模块
linux·运维·驱动开发
不想头秃a3 小时前
JavaEE初阶-网络编程
java·运维·服务器·网络
一ge科研小菜鸡3 小时前
云原生 DevOps 实践路线:构建敏捷、高效、可观测的交付体系
运维·云原生·devops
Chuncheng's blog3 小时前
CentOS 7 如何pip3安装pyaudio?
linux·运维·python·centos
西阳未落3 小时前
Linux(12)——基础IO(下)
linux·运维·服务器
什么半岛铁盒3 小时前
云服务器Xshell登录拒绝访问排查
运维·服务器