Installation and configuration of Resin + JSP + MySQL in Linux _ MySQL

Source: Internet
Author: User
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...

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.