ubuntu安装kibana

1、安装elastic search7

参考:elastic search入门-优快云博客

2、安装kibana,版本对不上,不匹配,不能正常启动。

 kibana要改成7.11.1版本的试试。

nohup wget https://artifacts.elastic.co/downloads/kibana/kibana-7.11.1-linux-x86_64.tar.gz &

等会几分钟,下载完成

tar -xvzf kibana-7.11.1-linux-x86_64.tar.gz 

解压,然后配置

vim config/kibana.yml

server.port: 5601
server.host: "localhost"  #服务器ip
elasticsearch.hosts: ["http://localhost:9200"]  #elasticsearch的访问地址
i18n.locale: "zh-CN"   #Kibana汉化
server.publicBaseUrl: "http://localhost:5601" #服务器ip

然后启动:

nohup  bin/kibana &

报错了,如下:

网上搜资料做出如下改动:

 然后启动,报错如下:

 怎么处理?

然后,开始报如下错误了:

{"type":"log","@timestamp":"2024-04-06T19:17:45+08:00","tags":["warning","plugins","licensing"],"pid":2401643,"message":"License information could not be obtained from Elasticsearch due to [security_exception] missing authentication credentials for REST request [/_xpack?accept_enterprise=true], with { header={ WWW-Authenticate=\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\" } } :: {\"path\":\"/_xpack?accept_enterprise=true\",\"statusCode\":401,\"response\":\"{\\\"error\\\":{\\\"root_cause\\\":[{\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"missing authentication credentials for REST request [/_xpack?accept_enterprise=true]\\\",\\\"header\\\":{\\\"WWW-Authenticate\\\":\\\"Basic realm=\\\\\\\"security\\\\\\\" charset=\\\\\\\"UTF-8\\\\\\\"\\\"}}],\\\"type\\\":\\\"security_exception\\\",\\\"reason\\\":\\\"missing authentication credentials for REST request [/_xpack?accept_enterprise=true]\\\",\\\"header\\\":{\\\"WWW-Authenticate\\\":\\\"Basic realm=\\\\\\\"security\\\\\\\" charset=\\\\\\\"UTF-8\\\\\\\"\\\"}},\\\"status\\\":401}\",\"wwwAuthenticateDirective\":\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"} error"}

参考:kibana异常 License information from the X-Pack plugin could not be obtained from Elasticsearch-优快云博客

这篇文章做了改动后,没报上面的这个错误了,但是还是访问不了kibana.

{"type":"log","@timestamp":"2024-04-06T21:38:31+08:00","tags":["warning","elasticsearch","monitoring"],"pid":2412833,"message":"No living connections"}
{"type":"log","@timestamp":"2024-04-06T21:38:31+08:00","tags":["warning","plugins","licensing"],"pid":2412833,"message":"License information could not be obtained from Elasticsearch due to Error: No Living connections error"}
{"type":"log","@timestamp":"2024-04-06T21:38:31+08:00","tags":["warning","elasticsearch","data"],"pid":2412833,"message":"Unable to revive connection: http://localhost:9200/"}
{"type":"log","@timestamp":"2024-04-06T21:38:31+08:00","tags":["warning","elasticsearch","data"],"pid":2412833,"message":"No living connections"}
{"type":"log","@timestamp":"2024-04-06T21:38:31+08:00","tags":["error","plugins","reporting","esqueue","queue-worker","error"],"pid":2412833,"message":"luo19sh91fpr21503d3rc1f8 - job querying failed: Error: No Living connections\n    at sendReqWithConnection (/home/lighthouse/kibana-7.11.1-linux-x86_64/node_modules/elasticsearch/src/lib/transport.js:266:15)\n    at next (/home/lighthouse/kibana-7.11.1-linux-x86_64/node_modules/elasticsearch/src/lib/connection_pool.js:243:7)\n    at processTicksAndRejections (internal/process/task_queues.js:75:11)"}
{"type":"log","@timestamp":"2024-04-06T21:38:43+08:00","tags":["warning","plugins","alerts","plugins","alerting"],"pid":2412833,"message":"Error executing alerting apiKey invalidation task: missing authentication credentials for REST request [/.kibana/_search?size=100&from=0&rest_total_hits_as_int=true]: security_exception"}
{"type":"log","@timestamp":"2024-04-06T21:39:01+08:00","tags":["info","plugins","watcher"],"pid":2412833,"message":"您的basic许可证不支持 watcher。请升级您的许可证。"}
{"type":"log","@timestamp":"2024-04-06T21:39:01+08:00","tags":["info","plugins","crossClusterReplication"],"pid":2412833,"message":"您的basic许可证不支持 crossClusterReplication。请升级您的许可证。"}
{"type":"log","@t
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值