Configuring jsp environment in linux _ simple tutorial

Source: Internet
Author: User
Tags domain name registration tomcat tomcat server

Configure the jsp environment in linux

$180★Diamond reputation★Xinnet domain name registration Chinese. cn Chinese. China
★Diamond reputation★Xinnet domain name registration Chinese. cn Chinese. China
 
 
Today, I have successfully configured the JSP development environment in Redhat Linux (Red Hat Enterprise Linux 4). I have some experience to share with you.

Operating system: Redhat Linux (Red Hat Enterprise Linux 4)

JDK: j2sdk-1_4_2_01-linux-i586.bin

TOMCAT: jakarta-tomcat-5.0.19.tar.gz

Installation steps:

JDK:

1) copy the installer to the/usr/local directory.

2) run the following command:

/J2sdk-1_4_2_01-linux-i586.bin

Decompress the package to get the directory j2sdk-1.4.2_01, change the directory name to j2sdk-1.4.2, otherwise the subsequent operation will be invalid.

3) execute the following commands in sequence:

Ln-s j2sdk-1.4.2 jdk

Ln-s jdk/jre

4) set environment variables

Vi/etc/profile

Add the following content:

JAVA_HOME =/usr/local/jdk

Export JAVA_HOME

CLASSPATH =/usr/local/jdk/lib:/usr/local/jre/lib

Export CLASSPATH

PATH = $ PATH:/usr/local/jdk/bin:/usr/local/jre/bin

5) test whether JDK is successfully installed.

Cd/etc

Javac

If javac instructions are displayed, the installation is successful.

TOMCAT:

1) copy the installer to the/usr/local directory.

2) run the following command:

Tar-zxvf jakarta-tomcat-5.0.19.tar.gz

Decompress the package to get the directory jakarta-tomcat-5.0.19

3) set environment variables

Vi/etc/profile

Add the following content:

TOMCAT_HOME = foo/tomcat

Export TOMCAT_HOME

4) enter/usr/local/jakarta-tomcat-5.0.19/bin and execute:

./Startup. sh start

Start tomcat server

5) test whether the installation is successful

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.