Elasticasearch Web管理工具-Cerebro
cerebro是一个使用Scala,Play Framework,AngularJS和Bootstrap构建的开源(MIT许可)elasticsearch web管理工具。需要Java 1.8或更高版本才能运行。
1、安装JAVA环境
tar -xzvf jdk-8u121-linux-x64.tar.gz -C /data
配置环境
/etc/profile文件中添加
export JAVA_HOME=/data/jdk1..0_121
export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$PATH:$JAVA_HOME/bin
重载文件
source /etc/profile
2、安装Cerebro
下载插件
https://github.com/lmenezes/cerebro/releases/download/v0.8.3/cerebro-0.8.3.zip
unzip cerebro-0.8..zip
配置文件application.conf
hosts = [
{
host = "http://10.10.18.10:9200" #es集群中任意一台
name = "es_cluster_name"
},
]
配置supervisor管理cerebro
安装supervisor
pip install supervisor
echo_supervisord_conf > /data/supervisor/supervisord.conf
修改文件: /data/supervisor/supervisord.conf
[include]
files = /data/supervisor/conf.d/*.ini
创建cerebro的ini文件 /data/supervisor/conf.d/cerebro.ini
[program:cerebro]
command=/data/cerebro/cerebro-0.8./bin/cerebro -Dhttp.port= -Dhttp.address=127.0.0.1
directory=/data/cerebro/cerebro-0.8./
autostart=true
autorestart=true
numprocs=
priority=
;startsecs=
startretries=
stopasgroup=true
killasgroup=true
stdout_logfile=/data/cerebro/cerebro-0.8./logs/supervisord_cerebro_out.log
stderr_logfile=/data/cerebro/cerebro-0.8./logs/supervisord_cerebro_err.log
启动supervisord服务
/usr/bin/supervisord -c /data/supervisor/supervisord.conf
安装完成
3、使用nginx做Cerebro反向代理
准备http basic认证文件
echo "admin:`openssl passwd 111111`" >> /etc/nginx/passwd.db
nginx的配置文件
server {
listen ;
server_name 10.10.18.10;
access_log /data/www/logs/nginx_log/access/cerebro_access.log main ;
error_log /data/www/logs/nginx_log/error/cerebro_error.log ;
location /{
auth_basic "Protect cerebro";
auth_basic_user_file /etc/nginx/passwd.db;
proxy_pass http://127.0.0.1:1234;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Scheme $scheme;
proxy_connect_timeout ;
proxy_send_timeout ;
proxy_read_timeout ;
proxy_redirect off;
proxy_buffering off;
}
error_page /50x.html;
location = /50x.html {
root html;
}
}
启动nginx服务器
使用浏览器就可以访问Cerebro服务
Elasticasearch Web管理工具-Cerebro的更多相关文章
- elk中es集群web管理工具cerebro
cerebo是kopf在es5上的替代者 安装es虽然不能再root下运行,但是cerebro 可以 run as root is ok wget https://github.com/lmeneze ...
- redis cluster集群web管理工具 relumin
redis cluster集群web管理工具 relumin 下载地址 https://github.com/be-hase/relumin 只支持redis cluster模式 java环境 tar ...
- KVM web管理工具——WebVirtMgr(一)
WebVirtMgr 介绍 WebVirtMgr采用几乎纯Python开发,其前端是基于Python的Django,后端是基于Libvirt的Python接口,将日常kvm的管理操作变的更加的 ...
- SWAT—Samba WEB管理工具
本文试验环境是RHEL5.2+samba-swat-3.0.28.Server的IP是192.168.120.241. 1. swat介绍 SWAT:The Samba WEB Administr ...
- ZooKeeper可视化Web管理工具收集(待实践)
原来ZooKeeper是有Web管理后台的.但是仅限于操作ZooKeeper的数据,如果要监控性能,估计要借助Nagios去配合. 这些工具应该ZK UI最好用,下面是收集的一些工具安装教程: htt ...
- 容器技术之LXC WEB管理工具LXC WEB Panel
前一篇博文中主要说了下,lxc容器在Linux上的简单管理,回顾请参考https://www.cnblogs.com/qiuhom-1874/p/12901493.html:今天我们来介绍下lxc的图 ...
- 虚拟化技术之kvm WEB管理工具kimchi
在前面的博客中,我们介绍了kvm的各种工具,有基于图形管理的virt-manager.有基于命令行管理的virt-install .qemu-kvm.virsh等等:今天我们来介绍一款基于web界面的 ...
- 云计算管理平台之OpenStack Web管理工具dashboard
在上一篇博客中,我们成功的基于两种网络启动虚拟机:这意味着openstack的核心服务都搭建完成,并正常运行着:有关启动虚拟机实例请参考上一篇博客:今天我们来了解下,基于一个web界面图形工具来管理o ...
- 快速搭建 kvm web 管理工具 WebVirtMgr
作者:SRE运维博客 博客地址: https://www.cnsre.cn/ 文章地址:https://www.cnsre.cn/posts/211117937177/ 相关话题:https://ww ...
随机推荐
- 莫烦TensorFlow_06 plot可视化
import tensorflow as tf import numpy as np import matplotlib.pyplot as plt def add_layer(inputs, in_ ...
- SpringBoot 指定资源文件的位置
SpringBoot默认的存放静态资源文件的位置是在: 里面的. 注:SpringBoot中的src/main/resources/资源文件夹对应classpath:. 默认存放静态资源文件的位置,在 ...
- Cannot resolve reference to bean 'mongoTemplate' while setting bean property 'mongoOperations'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with na
问题: Springboot 启动时出错,报没法创建bean的错误,看到nested最后是关于mongoTemplate的错误. 过程: 看网上大多说的是修改mongoTemplate的配置,但是sp ...
- 求数组前K个大的数
我们举例,假若从10000万个数里选出前100个最大的数据. 首先我们先分析:既然要选出前100个最大的数据,我们就建立一个大小为100的堆(建堆时就按找最大堆的规则建立,即每一个根节点都大于它的子女 ...
- 【转】Java 泛型
转载:https://www.cnblogs.com/lwbqqyumidi/p/3837629.html. 一. 泛型概念的提出(为什么需要泛型)? 首先,我们看下下面这段简短的代码: public ...
- CF1163E Magical Permutation(线性基,构造)
虽然做起来有一点裸……但是就是想不到啊…… 首先令 $d_i=p_i\oplus p_{i-1}$,那么 $d_i$ 都是 $S$ 中的数,$a_i=d_i\oplus d_{i-1}\oplus \ ...
- [LeetCode] 266. Palindrome Permutation 回文全排列
Given a string, determine if a permutation of the string could form a palindrome. Example 1: Input: ...
- HTML连载27-层叠性&优先级&!important用法
一.层叠性 1.定义:CSS处理冲突的一种能力 2.注意点:层叠性只有在多个选择器中“同一标签”,然后又设置了“相同的属性”,才会发生层叠性 3.CSS缩写:Cascading StyleSheet ...
- Hbase源码之 compact源码(二)
compact一中介绍了HBASE compact的调度流程,本篇文章主要介绍实际进行compact的过程.先从上文中的chore中接入,在HRegionserver中的compactChecker ...
- mybatis + mysql 批量插入、删除、更新
mybatis + mysql 批量插入.删除.更新 Student 表结构 批量插入 public int insertBatchStudent(List<Student> studen ...