elasticsearch 安装

下载

https://www.elastic.co/downloads/past-releases/elasticsearch-7-8-0

1 解压

tar xf elasticsearch-7.8.0.tgz -C /usr/local/

2 普通用户运行

elasticsearch的启动方式有点特殊,只能以普通用户的方式运维

useradd elasticsearch

chown -R elasticsearch.elasticsearch /usr/local/elasticsearch

3 创建存储路径

存放数据、日志目录

mkdir -p /opt/data/elasticsearch/data logs

chown -R elasticsearch.elasticsearch /opt/data/elasticsearch

4 修改配置文件

vim /usr/local/elasticsearch/config/elasticsearch.yml

cluster.initial_master_nodes: "es1"

cluster.name: elk-cluster

node.name: es1

node.master: true

node.data: true

path.data: /opt/data/elasticsearch/data

path.logs: /opt/data/elasticsearch/logs

bootstrap.memory_lock: false

bootstrap.system_call_filter: false

network.host: 192.168.190.150

http.port: 9200

transport.tcp.port: 9300

discovery.zen.ping.unicast.hosts: "192.168.190.150"

discovery.zen.minimum_master_nodes: 2

discovery.zen.ping_timeout: 150s

discovery.zen.fd.ping_retries: 10

client.transport.ping_timeout: 60s

http.cors.enabled: true

http.cors.allow-origin: "*"

5 启动

cd /usr/local/elasticsearch/bin/

nohup ./elasticsearch &

相关推荐
TechEdu20260628 分钟前
[计算机科学]大数据硬件架构与软件架构概览
大数据·计算机科学
爱莉希雅&&&34 分钟前
elasticsearch+kibana+logstash+filebeat链路部署流程
大数据·elasticsearch·搜索引擎·kibana·logstash·filebeat
FII工业富联科技服务1 小时前
从灯塔工厂到AI Factory新模式:AI正在重构制造业的四大核心能力
大数据·运维·人工智能·重构·ar·制造
小五传输1 小时前
自主可控建设指南:Serv-u替代方案,实现平滑迁移业务不中断
大数据·运维·安全
Spey_Events1 小时前
【核心议题发布】聚焦深度维修与 AI 智慧革新!2026中国民用航空维修智造展——议题重磅发布!
大数据·人工智能
czzxxxxxx1 小时前
创客匠人AI智能体:知识付费从“重人力”走向“自动化”的拐点
大数据·人工智能
大大大大晴天1 小时前
Hudi技术内幕:Clustering原理与实践
大数据
ZKNOW甄知科技1 小时前
燕千云深度集成飞书:以AI之力,开启无感IT运维体验
大数据·运维·网络·数据库·人工智能·低代码·集成学习
泡沫冰@1 小时前
在WSL上的部署Jenkins
jenkins
京和动物医院·总院1 小时前
2026年未央区宠物医院:如何挑选最适合您爱宠的健康守护者
大数据·人工智能·python