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

相关推荐
MacroZheng6 小时前
横空出世!MyBatis-Plus 同款 ES ORM 框架,用起来够优雅!
java·后端·elasticsearch
用户31187945592187 小时前
Kylin Linux 10 安装 glib2-devel-2.62.5-7.ky10.x86_64.rpm 方法(附安装包)
linux
涛啊涛8 小时前
Centos7非LVM根分区容量不足后扩容,对调硬盘挂载/
linux·磁盘管理
CYRUS_STUDIO1 天前
用 Frida 控制 Android 线程:kill 命令、挂起与恢复全解析
android·linux·逆向
熊猫李1 天前
rootfs-根文件系统详解
linux
Elasticsearch1 天前
平衡尺度:利用权重使倒数排序融合 (RRF) 更加智能
elasticsearch
dessler1 天前
Hadoop HDFS-高可用集群部署
linux·运维·hdfs
泽泽爱旅行1 天前
awk 语法解析-前端学习
linux·前端
轻松Ai享生活2 天前
5 节课深入学习Linux Cgroups
linux
christine-rr2 天前
linux常用命令(4)——压缩命令
linux·服务器·redis