英文:
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/nifi、http://localhost:8080/nifi、https://localhost:8443/nifi 和 http://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:
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/
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论