gpt4 book ai didi

java - Tomcat 管理器 ERR_CONNECTION_REFUSED

转载 作者:行者123 更新时间:2023-11-28 23:34:22 25 4
gpt4 key购买 nike

我使用 Eclipse IDE 并安装了 JBOSS 和 Tomcat:一切似乎都正常,但是......当我尝试连接到 http://localhost:8080/manager/html 以使用管理面板时,出现此错误:

ERR_CONNECTION_REFUSED

这是我的 tomcat 用户文件:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>

<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>


<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="mauro" password="mauro"
roles="manager-gui,manager-script "/>
</tomcat-users>

Windows 防火墙被禁用,直到现在我在查看所有 JPS 时都没有问题

最佳答案

将角色 manager-gui 给一些用户

<user username="manager" password="tomcat" roles="manager-gui"/>

NOTE: By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary.

关于java - Tomcat 管理器 ERR_CONNECTION_REFUSED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26026142/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com