我正在使用 Tomcat 7.0.65。
这是我的 tomcat-users.xml:
<role rolename="manager"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-status"/>
<user username="admin" password="tomcat" roles="manager,manager-gui,manager-script,manager-status"/>
这是 server.xml 中的服务器领域片段
<Realm className="org.apache.catalina.realm.MemoryRealm" />
我可以访问以下网址:[它第一次要求提供凭据]
http://localhost:8080/manager/status http://localhost:8080/manager/status/all
但访问任何网址:
http://localhost:8080/manager/text/sessions?path=/examples http://localhost:8080/manager/text/serverinfo
失败并显示“404 Not found”。下面是显示的错误信息:
The page you tried to access (/manager/text/sessions) does not exist.
The Manager application has been re-structured for Tomcat 7 onwards and some of URLs have changed. All URLs used to access the Manager application should now start with one of the following options:
/manager/html for the HTML GUI
/manager/text for the text interface
/manager/jmxproxy for the JMX proxy
/manager/status for the status pages
Note that the URL for the text interface has changed from "/manager" to "/manager/text".
You probably need to adjust the URL you are using to access the Manager application. However, there is always a chance you have found a bug in the Manager application. If you are sure you have found a bug, and that the bug has not already been reported, please report it to the Apache Tomcat team.
请注意,我以 /manager/text 的形式访问 url。甚至 curl 也会出现同样的错误。
我是否缺少任何配置?