Apt-Get Install Apache Tomcat 7 on Ubuntu 14.04
sudo apt-get update sudo apt-get install tomcat7 tomcat7-docs tomcat7-admin tomcat7-examples
then type: http://your_ip_address:8080 in your browser, and you will see next screen-shot:
If you see “It works!” your tomcat successfully installed
Install Java Development Kit (Optional)
sudo apt-get install default-jdk
Configure Tomcat Web Management Interface
You must add users by editing /etc/tomcat7/tomcat-users.xml file.
Edit your tomcat-users.xml.
Make sure change password and username.
<tomcat-users> <role rolename="admin-gui"/> <user username="tomcat" password="s3cret" roles="admin-gui"/> <role rolename="manager-gui"/> <user username="tomcat1" password="s3cret" roles="manager-gui"/> </tomcat-users>
Save file and restart tomcat service
sudo service tomcat7 restart