0% found this document useful (0 votes)
6 views2 pages

Tomcat Server

The document outlines the steps to install Git, Java, and Maven, and build a project using Maven. It details the installation of Apache Tomcat version 9.0.78, starting the application, and configuring the Tomcat user roles for deployment access. Additionally, it includes commands for deploying a WAR file to the Tomcat webapps directory.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Tomcat Server

The document outlines the steps to install Git, Java, and Maven, and build a project using Maven. It details the installation of Apache Tomcat version 9.0.78, starting the application, and configuring the Tomcat user roles for deployment access. Additionally, it includes commands for deploying a WAR file to the Tomcat webapps directory.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

#yum install git -y

#clone code from github


#yum install java-1.8.0
#yum install maven -y
#mvn -v
billd the code
#mvn clean packge

dicdn.apache.org

surch tomcat

tomcat version 9

click on v9.0.78

click on bin/

select (copy link right )

#wget url
#tar -zxvf filename
#ll

to start the application select bin

#cd apache-tomcat-9.0.78
#ll
#cd bin
go to startup.sh
#./startup.sh
to access tomcat copy ipadd
10.0.0.1:8080
to deploy application
click on manager app
#cd apache-tomact-9.0.
#ll
to update data base
#updatedb
#locate context.xml
copy path
/root/apache-tomcat-9.0.78/webapps/manager/META-INF/context.xml
or
#ll
#cd webapps
#cd manager
#cd META-INF
#ll
#vi context.xml
<valve className="org
line number 21

go tomcat access it

it ask username password

#cd apache-tomact-9
#ll
#cd conf
#vi tomact-users.xml
go last line
<role rolename="tomcat"/>
copy 3 lines
past it

<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<user username="tomcat" password="admin@123" roles="manager-gui,manager-script"/>
<tomcat-users>

exit

#ll
#cd bin
#./shutdow

cp one/target/*.war apache-tomcat-9.0.78/webapps/

mvn clean package

You might also like