Install the latest Tomcat 7 on Ubuntu 12.04 - lifuzu/cafe GitHub Wiki
- Java installation - refer to: Install the latest Oracle JDK on Ubuntu
- Download the latest Tomcat package:
http://www.carfab.com/apachesoftware/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz
- Run the following command to install it:
cd /usr/local; sudo tar -zxf ~/Downloads/apache-tomcat-7*.gz; \
sudo ln -s /usr/local/apache-tomcat-7* /usr/local/tomcat
- Append PATH in ~/.bashrc and run it:
export CATALINA_HOME=/usr/local/tomcat
export PATH=${CATALINA_HOME}/bin:$PATH
- Activate the change:
source ~/.bashrc
- Start the tomcat service:
sudo /usr/local/tomcat/bin/startup.sh
- Open the following URL in a browser to verify:
http://localhost:8080/
- Startup tomcat after reboot
/etc/init.d/tomcat
- Manager-GUI
Open up /usr/local/tomcat/conf/tomcat-users.xml, add a manager-gui role and a user by adding following lines there:
<role rolename="manager-gui"/>;
<user username="tomcat" password="tomcat" roles="manager-gui"/>;
Open the following URL in a browser to verify:
http://localhost:8080/manager
- JMX
TBD
References: