tomcat6.0还有tomcat manager 吗?有的话用户名和密码是多少?
发布网友
发布时间:2022-04-26 12:54
我来回答
共2个回答
热心网友
时间:2022-06-28 10:17
还有的,在conf目录下有个tomcat-users.xml,默认情况下,manager角色和用户是被注释掉了:
<tomcat-users>
<!--
NOTE: By default, no user is included in the "manager" role required
to operate the "/manager" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
-->
<!--
NOTE: The sample user and role entries below are wrapped in a comment
and thus are ignored when reading this file. Do not forget to remove
<!.. ..> that surrounds them.
-->
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
-->
</tomcat-users>
您把这个注释去掉就可以了:
<tomcat-users>
<!--
NOTE: By default, no user is included in the "manager" role required
to operate the "/manager" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
-->
<!--
NOTE: The sample user and role entries below are wrapped in a comment
and thus are ignored when reading this file. Do not forget to remove
<!.. ..> that surrounds them.
-->
<role rolename="tomcat"/>
<role rolename="manager"/>
<user username="tomcat" password="tomcat" roles="tomcat,manager"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
热心网友
时间:2022-06-28 10:18
谁说没有啊!我今天新装的tomcat6.0!用户名admin ,密码没有 tomcat6里面根本就没有什么tomcat manager 只有tomcat5版本里有因为安全性问题,所以