1、下载包
wget https://github.com/lmenezes/cerebro/releases/download/v0.8.1/cerebro-0.8.1.tgz
2、安装
解压后文件放置路径
/home/jyapp/cerebro-0.8.1
3、修改配置文件,以上配置以生存环境10.50.194.138 ES机器为举例,注意我们的cerebro只需要部署在一台ES机器上即可,这里我们选择的是10.50.194.138
[root@i-5A02DBB8 conf]# cat application.conf
# Secret will be used to sign session cookies, CSRF tokens and for other encryption utilities.
# It is highly recommended to change this value before running cerebro in production.
secret = "ki:s:[[@=Ag?QI`W2jMwkY:eqvrJ]JqoJyi2axj3ZvOv^/KavOT4ViJSv?6YY4[N"
# Application base path
basePath = "/"
# Defaults to RUNNING_PID at the root directory of the app.
# To avoid creating a PID file set this value to /dev/null
#pidfile.path = "/var/run/cerebro.pid"
pidfile.path=/dev/null
# Rest request history max size per user
rest.history.size = 50 // defaults to 50 if not specified
# Path of local database file
#data.path: "/var/lib/cerebro/cerebro.db"
data.path = "./cerebro.db"
# Authentication
auth = {
# Example of LDAP authentication
#type: ldap
#settings: {
#url = "ldap://host:port"
#base-dn = "ou=active,ou=Employee"
#method = "simple"
#user-domain = "domain.com"
#}
# Example of simple username/password authentication
type: basic
settings: {
username = "elastic"
password = "abc/123"
}
}
# A list of known hosts
hosts = [
#{
# host = "http://localhost:9200"
# name = "Some Cluster"
#},
# Example of host with authentication
{
host = "http://10.50.194.138:9200"
name = "cloud-ops"
auth = {
username = "elastic"
password = "abc/123"
}
}
]
4、启动服务
/home/jyapp/cerebro-0.8.1/bin/cerebro -Dhttp.port=8080 -Dhttp.address=10.50.194.138 &
5、我们现在使用的平台地址为
用户名密码为
username = "elastic"
password = "abc/123"