Linux under Resin+jsp+mysql installation and configuration

Source: Internet
Author: User
Tags mysql linux

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.