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

相关推荐
笔记本note2 小时前
Linux 文件系统与设备文件
linux·服务器·文件系统
无足鸟ICT2 小时前
【RHCA+】_proc_pid_cmdline
linux·运维·服务器
学以智用3 小时前
CentOS Linux 文件操作详解
linux
饿了吃洗衣凝珠4 小时前
shell循环
linux·运维·服务器
代码不停5 小时前
Linux基础知识
java·linux·数据库
东风微鸣5 小时前
Linux台式机也能指纹识别登录验证啦
linux·指纹
Elasticsearch6 小时前
Elastic 获得全新的 AWS 数据能力认证
elasticsearch
Elasticsearch7 小时前
Elastic 安全借助 NVIDIA Nemotron 为物理隔离的安全运营中心提供智能体人工智能
elasticsearch
Elasticsearch7 小时前
NVIDIA Nemotron 现已在 Elastic 推理服务(EIS)中可用
elasticsearch
岳涛7 小时前
考古|ES 5.1 给别名补上校验,长度上限文档里写 100 字节、5.6.16 源码是 255
elasticsearch