centos下安装elasticsearch-head

1、安装npm

sudo yum install npm

2、下载elasticsearch-head

cd /home/packages

sudo git clone https://github.com/mobz/elasticsearch-head.git

3、将npm镜像换为国内镜像

npm config set registry http://registry.npm.taobao.org/

4、安装phantomjs

sudo npm install phantomjs@2.1.1 --ignore

5、安装依赖环境

cd elasticsearch-head

sudo npm install

6、配置防火墙允许端口

sudo firewall-cmd --zone=public --add-port=9100/tcp --permanent

sudo firewall-cmd --reload

7、创建后台运行的日志文件es_head.log并设置所属用户

cd ../packages

sudo touch es_head.log

sudo chown -R lidamt:lidamt es_head.log

8、后台运行elasticsearch-head

nohup npm run start > /home/packages/es_head.log 2>&1 &

9、测试连接,内网连接需要挂vpn

相关推荐
Elasticsearch1 天前
Kibana 中的 SNMP 拓扑数据:从采集到 Canvas
elasticsearch
Sokach10151 天前
Linux Shell 脚本从零到能用:一个新手的一天学习总结
linux
AlfredZhao2 天前
Docker 容器时区不对,`timedatectl` 不存在怎么办?
linux·timezone
Elasticsearch3 天前
3个信号、2个环境变量、0个采集器:使用 Python 和 Elastic 的托管 OTLP 端点实现 OpenTelemetry
elasticsearch
zzzzzz3103 天前
9K Star 炸裂开源!这个 C 语言写的代码知识图谱,把 Linux 内核索引压缩到了 3 分钟
linux·服务器·sql
XIAOHEZIcode3 天前
Linux系统鼠标偏移常见原因以及修复方案
linux·运维·游戏
A小辣椒5 天前
TShark:Wireshark CLI 功能
linux
Elasticsearch5 天前
如何通过 Claude Code 来写入 CSV 数据到 Elasticsearch
elasticsearch
A小辣椒5 天前
TShark:基础知识
linux