1.下载kibana安装包
wget https://artifacts.elastic.co/downloads/kibana/kibana-5.6.5-linux-x86_64.tar.gz #修改成自己的版本
sha1sum kibana-5.6.5-linux-x86_64.tar.gz
tar -xzf kibana-5.6.5-linux-x86_64.tar.gz
cd kibana-5.6.5-linux-x86_64/
2.设置kibana环境变量
sudo vi /etc/profile
KIBANA_HOME=/home/tq/kibana-5.6.5-linux-x86_64
PATH=$KIBANA_HOME:$PATH
export KIBANA_HOME
保存,使用普通用户source /etc/profile
3.运行kibana
./bin/kibana
4.配置kibana.yml
server.port: 5601 (默认) //kibana端口
server.host: ip (默认localhost) //服务的ip
server.name: //kibana实例名称
elasticsearch.url: //elasticsearch地址,默认http://localhost:9200
5.安装X-Pack
elasticsearch:
bin/elasticsearch-plugin install x-pack
X-Pack:
bin/kibana-plugin install x-pack
6.kibana.yml 配置x-pack
xpack.security.enabled: true
xpack.monitoring.enabled: true
xpack.ml.enabled: false
xpack.graph.enabled: false
xpack.reporting.enabled: false
7.修改elasticsearch 用户名密码
8.es x-pack更新证书
访问:https://register.elastic.co/xpack_register 注册信息,到邮箱中下载json文件
执行虾面操作
curl -XPUT -u elastic ‘http://192.168.6.170:9200/_xpack/license?acknowledge=true‘ -H "Content-Type:alication/json" -d @tq-tq-40236623-daac-4f43-b82b-e5891f7bd889-v5.json
返回:
{"acknowledged":true,"license_status":"valid"}
X-PACK即可用
————————————————
版权声明:本文为CSDN博主「囧囧小先生」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/wangxiaofeng0010/article/details/79377426