关于java:Tomcat 7 manager/text 界面不起作用 | 珊瑚贝

Tomcat 7 manager /text interface does not work


我刚刚安装了新的 Tomcat 7.0.59,并将 Tomcat 管理器应用程序添加到 web-apps。我可以通过 http://host:8080/manager/html 登录并使用管理器的 Web 界面,就像使用 Tomcat 6 一样。Tomcat 7 文档 (http://tomcat.apache.org/migration- 7.html#Manager_application) 状态:

Note that the URL for the text interface has changed from”” to”/text”

我遇到的问题是使用 /text URI 属性不起作用。

  • http://host:8080/manager/list(有效)
  • http://host:8080/manager/text/list(返回 404)

是否需要进行一些配置设置才能使其正常工作?

  • 我想知道您使用的是什么发行版-如果您从官方网站下载tomcat,则默认情况下应该包含tomcat管理器:tomcat.apache.org/download-70.cgi
  • 您还需要在 conf/tomcat-users.xml 中创建一个具有”manager-script”权限的用户条目。


编辑您的 tomcat-users.xml 以获得具有 manager-script 角色的用户。它应该看起来像这样:

1
2
3
4
5
<tomcatusers>
    <role rolename=“manager-gui”/>
    <role rolename=“manager-script”/>
    <user username=“<username>” password=“<password>” roles=“manager-gui,manager-script”/>
</tomcatusers>

在我的 ubuntu 系统上,该文件位于 /etc/tomcat7/tomcat-users.xml


我认为根本原因是服务器拒绝maven的写操作,这里我的解决方案:

1
<user username=“xxx” password=“xxx” roles=“manager-gui,manager-script,manager-jmx,manager-status”/>

好的,所以关于经理脚本角色的建议对于解决我的问题很重要,为此我感谢 dnault 和 James 的反馈,因为我在文档中错过了这些反馈。

/manager/text 不起作用的最大问题是我犯了一个愚蠢的错误。我们从 Tomcat 的二进制发行版中拆分出 catalina_home 目录。如果我需要管理器进行安装,我会创建一个从 catalina_home/web-apps 目录到分发 web-apps/manager 目录的符号链接。在这样做时,我将它链接到 Tomcat 6 发行版而不是 Tomcat 7。

更改符号链接并添加管理器脚本解决了我的问题。


来源:https://www.codenong.com/28889011/

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_9237.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?