Java的tomact安装 哪位好人帮忙下啊

来源:百度知道 编辑:UC知道 时间:2024/05/03 12:24:50
请问下 我现在安装tomcat. 环境变量什么的都设置好了! 在命令行窗口也能启动tomcat. 也能访问tomcat的页面 但就是进不去tomcat manager的控制页面里面 密码我设置没错 但就是进不去 而且 我用eclipse运行的时候 提示我The Tomcat installation directory is not valid. It is missing expected file or folder conf. 能请问下 高手 这到底是怎么回事 我安装了一个下午了 还是不行 哪位帮助下 在下感激不尽
还有 在那个tomact的页面里面 没出现那个tomcat administration的页面 请问这到底怎么回事

tomcat默认的是没有admin的,你进tomcat的启动首页可以看到说明的,有这样一句话: For security reasons, using the administration webapp is restricted to users with role "admin". The manager webapp is restricted to users with role "manager". Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. 要修改下配置文件tomcat-users.xml.

confg下tomcat-users.xml文件
<role rolename="manager"/>
<user username="你的用户名" password="密码" roles="manager"/>

tomcat的管理页面很简陋的,一般也没有必要用到的,所以可以不用管,只要能够正常部署,运行就ok了