默认情况下,WildFly仅绑定到本地网络接口。
这可以在您的日志中看到:
JBAS017519: Undertow HTTP listener default listening on /127.0.0.1:8080 JBAS015961: Http management interface listening on http://127.0.0.1:9990/management JBAS015951: Admin console listening on http://127.0.0.1:9990
使用-b
和的-bmanagement
选项standalone.sh
绑定ABC
到所有网络接口或将其绑定到所有网络接口,例如
standalone.sh -b 0.0.0.0 -bmanagement=0.0.0.0