Techie Hints

A place where to find tech solution

Simple Steps to install tomcat on Ubuntu

sudo apt-get update
sudo apt-get install tomcat7
sudo vi /etc/default/tomcat7

JAVA_OPTS=”-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Xmx512m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC”

sudo apt-get install tomcat7-docs tomcat7-admin tomcat7-examples

sudo apt-get install default-jdk

sudo vi /etc/tomcat7/tomcat-users.xml

<tomcat-users>
<user username=”techiehints” password=”Admin123$” roles=”manager-gui,admin-gui”/>
</tomcat-users>
sudo service tomcat7 restart

 

test: http://localhost:8080/manager/html

%d bloggers like this: