[英]I can't access the Apache Tomcat Manager?
I know there are many of similar questions like mine. 我知道有很多类似的问题,例如我的。 However, I spend two days exploring these questions and no one works for me.
但是,我花了两天时间探讨这些问题,但没有人为我工作。
I have Apache Tomcat 7.0.59 installed on my laptop. 我的笔记本电脑上安装了Apache Tomcat 7.0.59。 I can access my Apps that I developed but I can't access the manager.
我可以访问自己开发的应用程序,但不能访问管理器。 I got this error:
我收到此错误:
HTTP Status 404 - /manager/html
HTTP状态404-/ manager / html
type Status report
类型状态报告
message /manager/html
消息/ manager / html
description The requested resource is not available.
描述所请求的资源不可用。
I use this url to access it: http://localhost:8080/manager/html
我使用此URL进行访问:
http://localhost:8080/manager/html
I changed the tomcat-users.xml and server.xml as I found in the web, but still does not work. 我更改了在网络上找到的tomcat-users.xml和server.xml,但仍然无法正常工作。
Here is my tomcat-users.xml 这是我的tomcat-users.xml
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="tomcat" roles="manager,manager-gui"/>
Here is my server.xml 这是我的server.xml
<!-- You should set jvmRoute to support load-balancing via AJP ie :
<Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
-->
<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.MemoryRealm" />
<!--For clustering, please take a look at documentation at:
/docs/cluster-howto.html (simple how to)
/docs/config/cluster.html (reference documentation) -->
<!--
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
-->
Could anyone help me? 有人可以帮我吗? why give me this error?
为什么给我这个错误? Is there anything wrong with the url?
网址有什么问题吗?
The problem happened because I was running the Tomcat from the Eclipse. 发生问题是因为我从Eclipse运行Tomcat。 I start it again from the terminal (command line) and the problem solved.
我从终端(命令行)再次启动它,问题解决了。
Thank you Andreas for help. 谢谢Andreas的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.