释放双眼,带上耳机,听听看~!
Cerebro连接安全认证后的elasticsearch集群如下
关于如何安装Cerebro请见 Elasticsearch插件安装之cerebro
关于Elasticsearch集群安装认证请见 Elasticsearch7.4 集群并进行安全认证
修改Cerebro配置文件
添加如下字段
[root@elastic /]# vim /usr/local/cerebro/conf/application.conf
hosts = [
{
host = "http://192.168.31.215:9201" #连接es集群节点的地址及端口,无论是否为master,任何一个节点即可
name = "elastic_cluster" #es集群标识名称,可以自定义,也可以写es集群名称
type = basic #es集群认证类型
auth = {
username = "elastic" #es集群认证用户
password = "26tBktGolYCyZD2pPISW" #es集群认证密码
}
}
]
启动并访问Cerebro
1.启动Cerebro
[root@elastic /]# nohup /usr/local/cerebro/bin/cerebro -Dhttp.port=1234 -Dhttp.address=192.168.31.215 &
2.确定运行后访问页面
[root@elastic /]# ps -ef|grep cerebro
3.访问页面
访问页面后直接点击连接即可

