Install Tomcat7 on Debian wheezy via apt-get
On wheezy, we can install tomcat 7.0.28 via apt-get.
- apt-get update
- apt-get install openjdk-7-jdk
- apt-get install tomcat7
- apt-get install tomcat7-admin
- edit /etc/tomcat7/tomcat-user.xml
No system user required. Tomcat seems to check tomcat-user.xml file when received management authentication requests.
Installed via apt-get, tomcat-user.xml is located at /etc/tomcat7/tomcat-users.xml.
And / is mapped /var/lib/tomcat7/webapps/ROOT. Adding any html or jsp files to this directory, Tomcat would become to look for files located at /var/lib/tomca7/webapps/ROOT.