Linux + jsp + Tomcat

Source: Internet
Author: User
Linux + jsp + Tomcat-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Jdk installation path:/usr/java/jdk
Tomcat installation path:/usr/local/tomcat/

J2sdk-1_4_2-linux-i586-rpm.bin

Jakarta-tomcat-4.1.24.tar.tar



1. install and configure jdk
: Http://java.sun.com/j2se/1.4.2/download.html
Downloading the rpm package is actually a. binfile.
# Chmod u + x j2sdk-1_4_2-linux-i586-rpm.bin
#./J2sdk-1_4_2-linux-i586-rpm.bin
# Rpm-ivh j2sdk-1_4_2-linux-i586-rpm
# Cd/usr/java/
# Ln-s j2sdk1.4.2/jdk/

Set environment variables:
Do not write it in/etc/profile. In this way, each user can use jdk for startup.
To use tomcat, write it to the home Directory of tomcat.
# Vi/home/tomcat/. bashrc (or. bash_profile)
Export JAVA_HOME =/usr/java/jdk
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH = $ JAVA_HOME/lib

Su to tomcat users to check whether they can be used
# Su-tomcat
$ Javac
$ Java
Is it displayed? If yes, jdk configuration is successful.
Su to root again

2. tomcat configuration I started by the Tomcat user. Please note that :)
Because I downloaded the binary version, no compilation is required.
# Cp/download/jakarta-tomcat-4.1.30.tar.gz/usr/local
# Tar zxvf jakarta-tomcat-4.1.30.tar.gz
# Rm-f jakarta-tomcat-4.1.30.tar.gz
# Cd jakarta-tomcat-4.1.30

Add environment variables:
# Vi/home/tomcat/. bashrc
Export CATALINA_HOME =/usr/local/tomcat
Export CATALINA_BASE =/usr/local/tomat

You can test whether Tomcat can be started normally:
# Bin/startup. sh
You will see these things:
Using CATALINA_BASE:/usr/local/tomcat
Using CATALINA_HOME:/usr/local/tomcat
Using CATALINA_TMPDIR:/usr/local/tomcat/temp
Using JAVA_HOME:/usr/java/jdk

Open your browser and enter http: // localhost: 8080. If you can see a abnormal kitten looking at you, congratulations.
, Tomcat has become

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.