Install Apache Tomcat7 on Ubuntu

tomcat$ apt-get update

$ apt-get install tomcat7

$ vim /etc/default/tomcat7

 

replace JAVA_OPTS with this

JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom -Djava.awt.headless=true -Xmx256m -XX:MaxPermSize=128m -XX:+UseConcMarkSweepGC"

$ service tomcat7 restart

service run on http://server_IP_address:8080

 

Installing Additional Packages

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

 

Configure Tomcat web management interface

$vim /etc/tomcat7/tomcat-users.xml

add user

<tomcat-users>
  <user username="admin" password="password" roles="manager-gui,admin-gui"/>
 </tomcat-users>

$ service tomcat7 restart

manager availible on http://server_IP_address:8080/manager/html

Leave a comment