tomcat 7.0 怎么配置admin界面呢?

kangwor 2011-04-30 05:25:21
高手帮忙
...全文
1144 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
dxbedu 2011-06-25
  • 打赏
  • 举报
回复
楼主确实说的不是很清楚。linux部署后,默认是有admin的。 但是需要配置用户。

如果不配置用户,输错3次密码后,应该就是楼主现在这个报错了。


配置用户的文件就是3楼说的那个文件。

那个文件中有配置方法的说明。

祝好运。
脉动回来 2011-06-24
  • 打赏
  • 举报
回复
<role rolename="manager-gui"/>

<user username="xxxxxx" password="xxxxx" roles="manager-gui"/>

试试
amber_room 2011-06-24
  • 打赏
  • 举报
回复
神马来的
welldoneAAA 2011-06-24
  • 打赏
  • 举报
回复
请问一下tomcat7.0 如何配置连接池
oO临时工Oo 2011-05-01
  • 打赏
  • 举报
回复
LZ表述问题非常不准确

不知道下面是不是楼主想要的,
tomcat启动后,按默认配置的话,打开http://127.0.0.1:8080/manager/html

默认用户名是admin,密码是空。
kangwor 2011-05-01
  • 打赏
  • 举报
回复
我说的是 tomcat 进去之后的 那个host manage 打不开
401 Unauthorized

You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file must contain the credentials to let you use this webapp.

For example, to add the admin-gui role to a user named tomcat with a password of s3cret, add the following to the config file listed above.
<role rolename="admin-gui"/>
<user username="tomcat" password="s3cret" roles="admin-gui"/>

Note that for Tomcat 7 onwards, the roles required to use the host manager application were changed from the single admin role to the following two roles. You will need to assign the role(s) required for the functionality you wish to access.
•admin-gui - allows access to the HTML GUI
•admin-script - allows access to the text interface

The HTML interface is protected against CSRF but the text interface is not. To maintain the CSRF protection:
•Users with the admin-gui role should not be granted the admin-script role.
•If the text interface is accessed through a browser (e.g. for testing since this interface is intended for tools not humans) then the browser must be closed afterwards to terminate the session.
Jeelon 2011-05-01
  • 打赏
  • 举报
回复
安装的时候可以设置admian 和密码的
如果安装完了你还需要配置邪的话 打开你Tomcat 安装目录下conf 下有一个tomcat-users.xml 你进去修改下你想要的名字和密码即可!

注意:用户名必须和web.xml里面的用户名对应 不然当你进去admian管理页面时会报错
kangwor 2011-05-01
  • 打赏
  • 举报
回复
怎么讲呢?
KANE_IT 2011-05-01
  • 打赏
  • 举报
回复
安装的时候你要选择添加这个,然后就可以在网页上打开了 ,之前你要配置一下用户
zzdyjqzg 2011-04-30
  • 打赏
  • 举报
回复
我也想知道:)

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧