"A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects." (Robert A. Heinlein)
Showing posts with label Tomcat. Show all posts
Showing posts with label Tomcat. Show all posts

Tuesday, 26 May 2009

Apache Tomcat om my Linux Server (2)

At last I managed to continue with my Apache Tomcat installation following this howto track.
Apache2 connector installation
I only installed the Apache2 Tomcat connector, since Apache2 is already installed on my server (I use it with Torrentflux):
sudo apt-get install libapache2-mod-jk
I then prepared  Apache workers configuration file
sudo vim /etc/apache2/workers.properties
workers.tomcat_home=/opt/tomcat
workers.java_home=/usr/lib/jvm/java-6-sun

ps=/
worker.list=default
worker.default.port=8009
worker.default.host=localhost
worker.default.type=ajp13
worker.default.lbfactor=1

Sunday, 29 March 2009

Apache Tomcat on my Linux server

I installed Apache Tomcat on my little Linux server (PIII-550Mz) since I'm going to test some java server application at home. I mainly based my installation on this howto with some little variation.
I first installed Java jdk 
 sudo apt-get install sun-java6-jdk
 Then I downloaded Apache Tomcat from my nearest mirror server
wget http://apache.fis.uniroma2.it/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.tar.gz
 Then I installed it
tar -xzvf apache-tomcat-6.0.18.tar.gz
sudo mv apache-tomcat-6.0.18 /opt/
sudo ln -s /opt/apache-tomcat-6.0.18/ /opt/tomcat

Monday, 23 February 2009

EEEBuntu: Restoring the Java development environment

After installing the operating system the second step in building up my EEEBuntu netbook is preparing a Java development environment by installing Java JDK, Netbeans and Apache Tomcat.
Java JDK installation:
EEEbuntu comes with  OpenJDK already installed, but I prefer having also Sun JDK installed. Java developer kit installation is done by terminal using apt-get command:
sudo apt-get install sun-java6-jdk
then Sun jdk is selected as default jdk by typing the command:
sudo update-java-alternatives --set java-6-sun