码迷,mamicode.com
首页 > 其他好文 > 详细

CentOS7安装elasticsearch-head

时间:2019-03-06 10:32:37      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:follow   环境   set   问题   etc   命令   执行   last   lease   

今天在安装elasticsearch-head的时候,需要用到npm环境,因此通过yum安装了一个,这里把遇到的问题和坑都记录一下。
elasticsearch-head的github地址:https://github.com/mobz/elasticsearch-head
操作系统版本:

[root@elk01 ~]# cat /etc/redhat-release 
CentOS Linux release 7.3.1611 (Core)

安装启动elasticsearch-head:
方法1:通过源码编译安装

#安装epel源
yum -y install epel-release

#安装npm、git客户端以及openssl
yum -y install npm git openssl

#克隆elasticsearch项目到本地
git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head

#安装项目,这个过程需花费大量时间
npm install

#启动
npm run start &

方法2:通过docker容器启动

#安装docker服务
yum -y install docker

#启动容器
docker run -p 9100:9100 mobz/elasticsearch-head:5

访问地址: http://localhost:9100/

执行命令npm install的时候遇到报错如下:
npm: relocation error: npm: symbol SSL_set_cert_cb, version libssl.so.10 not defined in file libssl.so.10 with link time reference
这时由于没有安装openssl导致的,因此需要事先安装好openssl!

CentOS7安装elasticsearch-head

标签:follow   环境   set   问题   etc   命令   执行   last   lease   

原文地址:https://blog.51cto.com/13178102/2358721

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!