- Download Tomcat 7 tar.gz binary distribution from here.
Unpack it using following command.
tar xvzf apache-tomcat-7.0.29.tar.gz
Move it to a more appropriate location using following command.
sudo mv apache-tomcat-7.0.29/ /usr/share/tomcat7
Open up /usr/share/tomcat7/bin/catalina.sh file using following command
Add following two lines in there after the first line.
Open up /usr/share/tomcat7/conf/tomcat-users.xml and uncomment user and
role entries there. Then add a manager-gui role and a user by adding
following lines there.
<role rolename="manager-gui"/> <user username="pavithra" password="tomcat" roles="manager-gui"/>
- Start the Tomcat server using following command.
sudo /usr/share/tomcat7/bin/catalina.sh run
Verify Tomcat installation using the following URL.
- To login as the manager, use the following URL, provide the relevant username and password.
Installing Tomcat 7 on Ubuntu 12.04
Join the DZone community and get the full member experience.Join For Free
Check out this 8-step guide to see how you can increase your productivity by skipping slow application redeploys and by implementing application profiling, as you code! Brought to you in partnership with ZeroTurnaround.
Published at DZone with permission of Pavithra Gunasekara, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.