elasticsearch 远程访问kibana

webghufk  于 2023-03-17  发布在  ElasticSearch
关注(0)|答案(1)|浏览(170)

我有一个数据库elasticsearch。我仍然使用kibana通过http://localhost:5601地址访问这个数据库。现在我想共享链接,以便其他人可以访问我的数据库,我需要修复什么?

I tried:
   sudo ufw allow 5601/tcp
   server.host: <my ip>
   network.host: <my ip>
but have error:
     elasticsearch.service - Elasticsearch
     Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-03-14 15:51:48 +07; 18s ago
       Docs: https://www.elastic.co
    Process: 5083 ExecStart=/usr/share/elasticsearch/bin/systemd-entrypoint -p ${PID_DIR}/elasticsearch.pid --quiet (code=exited, status=78)
   Main PID: 5083 (code=exited, status=78)
        CPU: 25.605s

Thg 3 14 15:51:38 congthanhcomputer systemd[1]: Starting Elasticsearch...
Thg 3 14 15:51:48 congthanhcomputer systemd-entrypoint[5083]: ERROR: [1] bootstrap checks failed. You must address the points described in the following [1] lines be>
Thg 3 14 15:51:48 congthanhcomputer systemd-entrypoint[5083]: bootstrap check failure [1] of [1]: the default discovery settings are unsuitable for production use; a>
Thg 3 14 15:51:48 congthanhcomputer systemd-entrypoint[5083]: ERROR: Elasticsearch did not exit normally - check the logs at /var/log/elasticsearch/elasticsearch.log
Thg 3 14 15:51:48 congthanhcomputer systemd[1]: elasticsearch.service: Main process exited, code=exited, status=78/CONFIG
Thg 3 14 15:51:48 congthanhcomputer systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
Thg 3 14 15:51:48 congthanhcomputer systemd[1]: Failed to start Elasticsearch.
Thg 3 14 15:51:48 congthanhcomputer systemd[1]: elasticsearch.service: Consumed 25.605s CPU time.
lines 1-16/16 (END)
gfttwv5a

gfttwv5a1#

kibana.yml

**服务器主机:0.0.0.0

首先确保您的Kibana工作正常。

curl -X GET "http://localhost:5601/api/task_manager/_health"

更新您的Kibana.yml和server.host,以便从服务器外部访问您的Kibana,并使用服务器的IP地址访问您的Kibana。
https://www.elastic.co/guide/en/kibana/current/settings.html

相关问题