How to Install Apache Tomcat 7 or 8 or 9 in Windows 10 & What is default password?

Tomcat Version 7,8 & 9

System Requirements

Java Development Kit (JDK)
Operating System > Windows 10

Tomcat 7 and above

$TOMCAT_HOME/conf/tomcat-users.xml – Actual file

<tomcat-users>
<!–-
<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 7 and above

$TOMCAT_HOME/conf/tomcat-users.xml – Added user details file

<tomcat-users>
<!–-
<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"/>
-->
<role rolename="manager-gui"/> 
<user username=“admin" password=“yourpassword" roles="manager-gui"/> 
</tomcat-users>


Tomcat 6 and before

$TOMCAT_HOME/conf/tomcat-users.xml > added user details

<tomcat-users> <role rolename="manager"/>
<user username="admin" password=“yourpassword" roles="manager"/>
</tomcat-users>

Reference
https://tomcat.apache.org/







No comments:

Post a Comment