英文:
MSC000001: Failed to start service org.wildfly.undertow.listener.default:Address already in use /127.0.0.1:8081
问题
错误:
MSC000001: 无法启动服务 org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException 在服务 org.wildfly.undertow.listener.default 中: 地址已在使用 /127.0.0.1:8081
当我启动 Keycloak 时,遇到了这个问题。
如果有人遇到类似的问题,最好提供一些建议。
英文:
ERROR:
MSC000001: Failed to start service org.wildfly.undertow.listener.default: org.jboss.msc.service.StartException in service org.wildfly.undertow.listener.default: Address already in use /127.0.0.1:8081
When I started the keycloak, faced this issue.
If anyone comes across the same kind of issue, it's best to provide some suggestions.
答案1
得分: 0
Step-1: 首先验证/etc/hosts
文件中的无效映射。
在我的情况下,存在以下无效映射。
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe00::1 ip6-allnodes
fe00::2 ip6-allrouters
10.32.12.25 keycloak-f744f7965-lg7hj
我尝试从hosts文件中删除最后一行,但由于权限问题不允许。
最后,我重新启动了同一Pod,然后问题得以解决。
英文:
After spending a lot of time, I finally found the resolution:
Step-1: first verify the /etc/hosts
file for invalid mappings.
In my case, the below invalid mappings are there.
127.0.0.1  localhost
::1   localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
fe00::0 ip6-mcastprefix
fe00::1 ip6-allnodes
fe00::2 ip6-allrouters
10.32.12.25    keycloak-f744f7965-lg7hj
I tried to remove this last line from the hosts file, but it is not allowed due to permission.
I finally restarted the same pod and then it got resolved.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论