第一步:下载
https://github.com/lmenezes/cerebro/releases
https://github.com/lmenezes/cerebro/releases/download/v0.9.4/cerebro-0.9.4.tgz
第二步:解压
tar -zxvf cerebro-0.9.4.tgz
第三步:配置
1、配置端口:
nohup bin/cerebro -Dhttp.port=9000 > cerebro.log &
2、指定es服务:如果经常使用的话,可以先在conf/application.conf中配置好ElasticSearch服务器地址
hosts = [
{
host = "http://localhost:9200"
name = "Some Cluster"
},
# Example of host with authentication
#{
# host = "http://some-authenticated-host:9200"
# name = "Secured Cluster"
# auth = {
# username = "username"
# password = "secret-password"
# }
#}
]
第四步:验证
http://192.168.2.xx:9000
查看es的节点信息
image.png
网友评论