Access Tomcat
common tasks
- start: bhladmin@bhl-test2:/$ sudo etc/init.d/tomcat6 start
- stop: bhladmin@bhl-test2:/$ sudo etc/init.d/tomcat6 stop
- status: bhladmin@bhl-test2:/$ sudo etc/init.d/tomcat6 status
how to test if it's working
location
- web-application: /var/lib/tomcat6/webapps
- application-container:/usr/share/tomcat6/
- config files:
- /etc/tomcat6/server.xml
- /etc/tomcat6/tomcat-users.xml
- /etc/default/tomcat6
- /usr/share/tomcat6/bin/catalina.sh
- logs:
- tomcat: /var/log/tomcat6/catalina.out
dependencies
modifying config files
- after modifying any config file: restart tomcat
login information if necessary
proxy information
Installation
Tomcat
- bhladmin@bhl-test2:/etc/init.d$ sudo apt-get install tomcat6 tomcat6-admin
- bhladmin@bhl-test2:/$ sudo nano /etc/tomcat6/server.xml
- Change http port from 8080 to 8090 to avoid conflict with fedora-tomcat <Connector port=”8090″ protocol=”HTTP/1.1″
- Change shutdown port from 8005 to 8095 to avoid conflict with fedora-tomcat <Server port="8095" shutdown="SHUTDOWN">
- bhladmin@bhl-test2:/$ sudo nano /etc/tomcat6/tomcat-users.xml
- Add <role rolename="manager"/>
<user username="bhletech" password="${password}" roles="manager"/>