简体   繁体   English

Tomcat 7管理器/ text界面不起作用

[英]Tomcat 7 manager /text interface does not work

I've just setup a new Tomcat 7.0.59 installation and added the Tomcat Manager application to web-apps. 我刚刚安装了新的Tomcat 7.0.59,并将Tomcat Manager应用程序添加到了Web应用程序中。 I'm able to login and use the web interface to manager via http://host:8080/manager/html as I could with Tomcat 6. The Tomcat 7 documentation ( http://tomcat.apache.org/migration-7.html#Manager_application ) states: 我可以像使用Tomcat 6一样通过http:// host:8080 / manager / html登录并使用Web界面管理器。Tomcat 7文档( http://tomcat.apache.org/migration-7 .html#Manager_application )状态:

Note that the URL for the text interface has changed from "" to "/text" 请注意,文本界面的URL已从“”更改为“ / text”

The problem that I have is that using the /text URI attribute doesn't work. 我遇到的问题是使用/ text URI属性不起作用。

Is there some configuration setup that I need to do in order to get this to work properly? 我需要做一些配置设置才能使其正常工作吗?

Edit your tomcat-users.xml to have a user with the manager-script role. 编辑您的tomcat-users.xml使其具有具有manager-script角色的用户。 It should look something like this: 它看起来应该像这样:

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

On my ubuntu system, the file is located in /etc/tomcat7/tomcat-users.xml 在我的ubuntu系统上,该文件位于/etc/tomcat7/tomcat-users.xml

Ok, so the recommendations for the manager-script role were important to solving my issue and for that I thank dnault and James for your feedback as I missed that in the documentation. 好的,因此,对于经理脚本角色的建议对于解决我的问题非常重要,为此,我感谢dnault和James的反馈,因为我在文档中没有提供反馈。

The biggest issue for the /manager/text not working was a bonehead mistake on my part. / manager / text无法正常工作的最大问题是我犯了一个骨头错误。 We breakout the catalina_home directory from the binary distribution of Tomcat. 我们从Tomcat的二进制发行版中分解出catalina_home目录。 If I need manager for an installation, I create a symlink from the catalina_home/web-apps directory to the distribution web-apps/manager directory. 如果需要安装管理器,则创建从catalina_home / web-apps目录到发行版web-apps / manager目录的符号链接。 In doing so, I linked it to the Tomcat 6 distro instead of Tomcat 7. 为此,我将其链接到Tomcat 6发行版而不是Tomcat 7。

Changing the symlink and adding the manager-script solved my issue. 更改符号链接并添加经理脚本解决了我的问题。

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM