无法访问Nifi界面

huangapple go评论89阅读模式
英文:

Can't access to Nifi Ui

问题

我正在尝试在Mac M2上使用Docker上的Nifi UI。

使用的Docker命令是:

docker run --net=host --platform=linux/arm64 --name nifi -p 8080:8080 -e SINGLE_USER_CREDENTIALS_USERNAME=admin -e SINGLE_USER_CREDENTIALS_PASSWORD=ctsBtRBKHRAx69EqUghvvgEvjnaLjFEB -e NIFI_WEB_HTTP_HOST=172.20.0.1 -d apache/nifi:latest

它正常运行,如下图所示:

点击此处查看图片描述

在docker日志的一行中,我找到了这个信息:

o.a.nifi.web.server.HostHeaderHandler 确定了11个有效的主机名和IP地址用于传入的标头:127.0.0.1, 127.0.0.1:8443, localhost, localhost:8443, [::1], [::1]:8443, docker-desktop, docker-desktop:8443, 192.168.65.4, 192.168.65.4:8443,

我尝试通过以下方式访问UI:https://localhost:8080/nifihttp://localhost:8080/nifihttps://localhost:8443/nifihttp://localhost:8443/nifi,但都没有成功。

我已经没有关于我可以做什么的选项了。

英文:

I'm trying to use Nifi UI using docker on a Mac M2.

The Docker command used is:

docker run --net=host --platform=linux/arm64 --name nifi -p 8080:8080 -e SINGLE_USER_CREDENTIALS_USERNAME=admin -e SINGLE_USER_CREDENTIALS_PASSWORD=ctsBtRBKHRAx69EqUghvvgEvjnaLjFEB -e NIFI_WEB_HTTP_HOST=172.20.0.1 -d apache/nifi:latest

It runs normally, as shown in the image below:

enter image description here

In one of the lines from docker log I've found this:

o.a.nifi.web.server.HostHeaderHandler Determined 11 valid hostnames and IP addresses for incoming headers: 127.0.0.1, 127.0.0.1:8443, localhost, localhost:8443, [::1], [::1]:8443, docker-desktop, docker-desktop:8443, 192.168.65.4, 192.168.65.4:8443,

I tried accessing the UI through <https://localhost:8080/nifi> and <http://localhost:8080/nifi> and <https://localhost:8443/nifi> and <http://localhost:8443/nifi> but without success.

I've ran out of options about what I can do.

答案1

得分: 1

我成功通过 https://127.0.0.1:8443/nifi/ 访问了 Nifi UI。

英文:

I was able to access the Nifi UI using https://127.0.0.1:8443/nifi/

huangapple
  • 本文由 发表于 2023年6月22日 08:16:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/76527892.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定