Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Installing Sun-Java6 in Ubuntu 10.04
- $ nano /etc/apt/sources.list
- deb http://archive.canonical.com/ubuntu lucid partner
- deb-src http://archive.canonical.com/ubuntu lucid partner
- $ dpkg --get-selections | grep sun-java
- $ sudo apt-get install sun-java6-jdk
- Installing Tomcat6
- $ sudo apt-get install tomcat6
- Configuration
- 1. Changing JVM used
- $ sudo nano /etc/default/tomcat6
- JAVA_HOME=/usr/lib/jvm/java-6-sun
- 2. Declaring users and roles
- $ sudo nano /etc/tomcat6/tomcat-users.xml
- <role rolename="admin"/>
- <user username="tomcat" password="s3cret" roles="admin"/>
- 3. Changing default ports
- $ sudo nano /etc/tomcat6/server.xml
- <Connector port="8080" protocol="HTTP/1.1"
- connectionTimeout="20000"
- redirectPort="8443" />
- ...
- <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
- Using Tomcat standard webapps
- 1. Tomcat documentation (http://yourserver:8080/docs)
- $ sudo apt-get install tomcat6-docs
- 2. Tomcat administration webapps (http://yourserver:8080/manager/html, http://yourserver:8080/host-manager/html)
- $ sudo apt-get install tomcat6-admin
- /* Access to the manager application is protected by default: you need to define a user with the role "manager" in /etc/tomcat6/tomcat-users.xml before you can access it. */
- /* Access to the host-manager application is also protected by default: you need to define a user with the role "admin" in /etc/tomcat6/tomcat-users.xml before you can access it. */
- $ sudo chgrp -R tomcat6 /etc/tomcat6
- $ sudo chmod -R g+w /etc/tomcat6
- 3. Tomcat examples webapps (http://yourserver:8080/examples)
- $ sudo apt-get install tomcat6-examples
- 4. Program Huree Academy (http://yourserver:8080/HUREEICT)
- $ sudo gedit /etc/tomcat6/server.xml
- <Context path="/HUREEICT" docBase="/home/hureeadmin/academy/HUREEICT" />
- </Host>
- nano /etc/mysql/my.cnf
- # bind-address = 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment