我相信我已经正确配置Tomcat以在端口8080上运行并启用了管理器,但是当我尝试访问它时我得到404.
tomcat正在8080上运行
$ netstat -apn | grep 8080 | grep LISTEN
(Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 31068/java
经理部署WAR
$ ls webapps/ | grep manager
drwxr-xr-x 5 voops voops 4096 Dec 2 12:34 host-manager/
drwxr-xr-x 5 voops voops 4096 Dec 2 12:34 manager/
经理已正确配置
$ find . -iname manager.xml
./webapps/host-manager/manager.xml
$ tail -4 ./webapps/host-manager/manager.xml
<Context docBase="${catalina.home}/webapps/manager"
privileged="true" antiResourceLocking="false" antiJARLocking="false">
</Context>
尝试访问经理时404
$ wget localhost:8080/manager
--2015-04-23 15:03:38-- http://localhost:8080/manager
Resolving localhost... 127.0.0.1, ::1
Connecting to localhost|127.0.0.1|:8080... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-04-23 15:03:38 ERROR 404: Not Found.
(尝试localhost:8080/manager/html
时的结果与上述相同)。请注意,部署在同一Tomcat中的其他应用程序似乎正常工作。只有内置管理器应用程序似乎失败了。