各位高手,本人今天到官方下载了一个最新的Tomcat6.0.20服务器(.zip)解压后,开户服务输入:http://localhost:8080
可以正常访问,但是点击"tomcat manager"时,弹出一个一登录框,要求输入用户名和密码。
见图:本人已在conf\tomcat-users.xml文件中,添加了用户,如下: <role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager"/> 但是重启tomcat服务后,还是登录不成功!貌似是用户与密码不对,输入几次后,出现一个网页:大致内容如下:401 UnauthorizedYou 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 will contain the credentials to let you use this webapp. You will need to add manager role to the config file listed above. For example: <role rolename="manager"/>
<user username="tomcat" password="s3cret" roles="manager"/>
For more information - please see the Manager App HOW-TO.
可以正常访问,但是点击"tomcat manager"时,弹出一个一登录框,要求输入用户名和密码。
见图:本人已在conf\tomcat-users.xml文件中,添加了用户,如下: <role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager"/> 但是重启tomcat服务后,还是登录不成功!貌似是用户与密码不对,输入几次后,出现一个网页:大致内容如下:401 UnauthorizedYou 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 will contain the credentials to let you use this webapp. You will need to add manager role to the config file listed above. For example: <role rolename="manager"/>
<user username="tomcat" password="s3cret" roles="manager"/>
For more information - please see the Manager App HOW-TO.
解决方案 »
- Socket多流怎么同时传输问题 请教各位大侠 在线等
- ant打包项目成jar包,怎么让让MANIFEST.MF里面带有版本信息
- java web聊天程序
- 关于Spring的一些总结
- 在java中能不能动态地接受源代码,再实时一行一行地运行出来?
- 谁知道哪里有“歪脖老鸡壳”比较好的论坛呢?
- structs的好处在哪里?
- (急!!!在线等)struts中文显示问题,我已试过几种方法但不成功
- 请问可以在jbuilder7下面配置struts1.1吗
- 在调用ejb时,如何引用JNDI名称?
- 求一个 java EE API 谢谢!
- struts+Hibernate(拦截器)实现登录权限验证 启动报错求解。
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager"/>
<user username="admin" password="123456" roles="manager"/>
</tomcat-users>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="admin" password="admin" roles="admin,manager"/> 我已添加了,但是不行啊????
<!--XXXXXX -->