To prepare the software:
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 in the/down.
Installation process:
I. Installation of J2SDK
1. Extract the file, extract a RPM installation package, installation in response to the prompt answer Yes to install the file into 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
Setup installs the J2SDK in the following directory:
# Ls/usr/java
jdk1.5.0
2. Configure Environment variables
(1) Configure User environment variables
If the user name is June, edit the user's. bashrc file:
# VI/HOME/JUN/.BASHRC
In which to 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 that these should be added to the export PATH USER ... Before
3. Check if correct:
Exit Login First
# Logout
And then log in, enter the following command, if prompted parameters, generally think no problem.
# Javac