What is the default username and password in Tomcat?

前端 未结 18 914
无人共我
无人共我 2020-12-04 09:18

I installed Netbeans and tryed to access the server\'s manager using: (id/pass)manager/manager, admin/admin, system/password... None of them worked.

相关标签:
18条回答
  • 2020-12-04 10:12

    In Tomcat 7, 8, and 9 there is NO default user, so nobody can access a Manager app. You need to alter conf/tomcat-users.xml by adding new user with the role "manager-gui", like:

    <role rolename="manager-gui"/>
    <user username="admin" password="admin" roles="manager-gui"/>
    

    Look up here: https://www.mkyong.com/tomcat/tomcat-default-administrator-password/

    0 讨论(0)
  • 2020-12-04 10:15

    in file /conf/tomcat-users.xml check or add:

    ......
    <role rolename="manager"/>
    <user username="ide" password="ide" roles="manager,tomcat,manager-script"/>
    </tomcat-users>
    
    0 讨论(0)
  • 2020-12-04 10:15

    Well, you need to look at the answers above, but you'll find that the manager app requires you to have a user with the role 'manager', I believe, so you'll probably want to add the following to your tomcat-users.xml file:

    <role rolename="manager"/>
    <user username="youruser" password="yourpass" roles="manager"/>
    

    This might seem simplistic, but it's just a simple implementation that you can extend / replace with other authentication mechanisms.

    0 讨论(0)
  • 2020-12-04 10:16

    For Window 7, Netbeans 8.0.2 , Apache Tomcat 8.0.15
    C:\Users\JONATHAN\AppData\Roaming\NetBeans\8.0.2\apache-tomcat-8.0.15.0_base\conf\tomcat-users.xml
    The Tomcat Manager Username and password is like below pic..
    tomcat-users.xml

    0 讨论(0)
  • 2020-12-04 10:16

    In conf/tomcat-users.xml you can see what's your actual user configuration, in my case is usually user="admin" and pass="1234"

    0 讨论(0)
  • 2020-12-04 10:17

    Look in your conf/tomcat-users.xml. If there is nothing there, you'd have to configure it.

    0 讨论(0)
提交回复
热议问题