How to Install Tomcat7 on Ubuntu 12.04 and ubuntu 12.10 and ubuntu Server lts


Install the tomcat 7

Step:1 Install Oracle Java 7

Step:2

Run the following commands in your console:
sudo apt-get update
sudo apt-get install tomcat7

Stop the tomcat7 service
sudo service tomcat7 stop

Edit the tomcat7 default start-up configuration file
sudo vi /etc/default/tomcat7

Change the JAVA_HOME option to the following and remove the starting #:
JAVA_HOME=/usr/lib/jvm/jdk1.7.0

Start the tomcat7 service
sudo service tomcat7 start

Open the default tomcat port in your firewall
sudo ufw enable 8080/tcp

your_IP_address:8080.




0 comments:

Post a Comment