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 小时前
让我们把这个 expense 工具从 n8n 迁移到 Elastic One Workflow
elasticsearch
蓝晶之心1 小时前
Linux rsync ssh方式数据备份
linux·运维·服务器
ss2731 小时前
Java线程池全解:工作原理、参数调优
java·linux·python
fengyehongWorld2 小时前
Linux sudo命令
linux·运维·服务器
JiMoKuangXiangQu2 小时前
Linux 内存管理:页表管理简析
linux·mmu·内存管理·页表管理
WG_172 小时前
Linux:缓冲区_glibc封装
linux·运维·服务器
番知了2 小时前
Ubuntu 22.04 常用命令清单
linux·运维·ubuntu
FF-Studio2 小时前
Ubuntu 24.04 磁盘爆满“灵异“事件:Btrfs, Snapper 与删不掉的空间
linux·运维·人工智能·ubuntu
star-yp2 小时前
[特殊字符]Elasticsearch从入门到精通:核心概念与实战解析(附完整代码)
大数据·elasticsearch·搜索引擎
极地星光2 小时前
Ubuntu 16.10 启动时 networking.service 缓慢问题
linux·ubuntu