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

相关推荐
ShineWinsu1 小时前
对于Linux:动静态库的制作与原理的解析—下
linux·运维·服务器·进程·链接·虚拟地址空间·
RH2312112 小时前
2026.4.16Linux 管道
java·linux·服务器
handler013 小时前
Linux: 基本指令知识点(2)
linux·服务器·c语言·c++·笔记·学习
liuyukuan3 小时前
如何在win11上打开 WSL2(Windows 的 Linux 子系统)?
linux·windows
橙子也要努力变强3 小时前
Linux信号机制
linux·服务器·网络
shughui3 小时前
FinalShell / Xshell 完整教程(下载+安装+使用,2026最新版)
linux·fiddler·xshell·xftp·finalshell·远程连接工具
程序猿编码4 小时前
给你的网络流量穿件“隐形衣“:手把手教你用对称加密打造透明安全隧道
linux·开发语言·网络·安全·linux内核
pengyi8710154 小时前
私网IP映射公网基础原理,搭配代理IP远程访问入门
linux·服务器·网络
深圳市九鼎创展科技5 小时前
MT8883 vs RK3588 开发板全面对比:选型与场景落地指南
大数据·linux·人工智能·嵌入式硬件·ubuntu
阿里云大数据AI技术6 小时前
深度回顾 | 阿里云携手 Elastic 定义 Agent 时代搜索新范式,解锁 Search AI 核心生产力
elasticsearch·agent