Install and configure the software for Resin + JSP + MySQL in Linux:
1. J2SDK (1.5.0): jdk-1_5_0-linux-i586-rpm.bin
2. Apache (2.0.53): httpd-2.0.53.tar.gz
3. Resin (3.0.13): resin-3.0.13.tar.gz
4. MySQL (4.1.12): Server: MySQL-server-4.1.12-1.i386.rpm
Client: MySQL-client-4.1.12-1.i386.rpm
5. MySQL-JBDC Connector: mysql-connector-java-3.1.10.tar.gz
Put all the above software in a directory, assuming it is in/down.
Installation process:
1. install J2SDK
1. decompress the file, decompress it, and run the RPM installation package. in the installation process, answer yes as prompted to install the file to the/usr/java/jdk1.5.0 directory.
# Chmod u + x./jdk-1_5_0-linux-i586-rpm.bin
#./Jdk-1_5_0-linux-i586-rpm.bin
# Rpm-ivh jdk-1_5_0-linux-i586.rpm
The installer installs J2SDK in the following Directory:
# Ls/usr/java
Jdk1.5.0
2. configure environment variables
(1) configure user environment variables
If the username is jun, edit the user's. bashrc file:
# Vi/home/jun/. bashrc
Add:
Export JAVA_HOME =/usr/java/jdk1.5.0
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib: $ CLASSPATH
Export PATH = $ PATH: $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin: $ HOMR/bin
(2) configure environment variables for all users
# Vi/etc/profile
Join:
Export JAVA_HOME =/usr/java/jdk1.5.0
Export CLASSPATH =.: $ JAVA_HOME/lib: $ JAVA_HOME/jre/lib: $ CLASSPATH
Export PATH = $ PATH: $ JAVA_HOME/bin: $ JAVA_HOME/jre/bin: $ HOMR/bin
Note: these should be added before export path user...