Tomcat is a web-container that allows to run servelet and Java Server Pages (JSP) based web applications.
<role rolename="manager-gui" />
<user username="tomcat" password="s3cret" roles="manager-gui" />
Tomcat Usages
- A container that allows running web applications.
- Can use as HTTP server(default port : 8080)
Installation
Follwing steps are described to install Tomcat7 in Ubuntu OS using terminal.- sudo apt-get install tomcat7
- sudo apt-get install tomcat7-admin
- sudo apt-get install tomcat7-docs
- sudo apt-get install tomcat7-examples
Start/Stop Tomcat Server
In Ubuntu after istalling Tomcat server it will start automaticaly. But if you want to restart the server you can use follwing command- sudo /etc/init.d/tomcat7 restart
If you want to stop the Tomcat Server you can issue following command.
- sudo /etc/init.d/tomcat7 stop
Test The Server
After starting the Tomcat server you can check it by entering the following URL in the brower- http://localhost:8080
Admin Console
Tomcat provides a web based administration console and you can access it using following credentials.- Default username = admin and password = admin
If you want to reset the administation credentials you can follow below steps.
- sudo gedit etc/tomcat7/tomcat-users.xml
<role rolename="manager-gui" />
<user username="tomcat" password="s3cret" roles="manager-gui" />
Comments
Post a Comment