Install atat(apache-tomcat-6.0.29.zip) in linux ):

Source: Internet
Author: User

Operating System: RedHat Linux 5

1. install Tomcat

Decompress apache-tomcat-6.0.29.zip to any directory with permissions, such as/home/ITS/Apache-Tomcat-6.0.29.

 

2. Download and install JDK (jdk1.6.0 _ 24-linux-i586.bin ):

Run the./jdk1.6.0 _ 24-linux-i586.bin command to install the SDK. Assume that the installation path is/home/ITS/jdk1.6.0 _ 24.

Set environment variables: VI ~ /. Bash_profile:

Java_home =/home/ITS/jdk1.6.0 _ 24
Path = $ path: $ home/bin
Path = $ java_home/bin: $ path
Class_path = $ java_home/lib/dt. jar: $ java_home/lib/tools. Jar
Export java_home
Export class_path
Export tomcat_home =/home/ITS/Apache-Tomcat-6.0.29
Export catalina_home =/home/their/Apache-Tomcat-6.0.29
Export path

 

Note: The red font is required, and other settings are not required.

 

3. start Tomcat

$ CD/home/ITS/Apache-Tomcat-6.0.29/bin

$./Startup. Sh

 

The following error is reported:

The basedir environment variable is not defined correctly
This environment variable is needed to run this program

 

Solution:

Add the following executable permissions for all. Sh files in/home/ITS/Apache-Tomcat-6.0.29/bin:

$ CD/home/ITS/Apache-Tomcat-6.0.29/bin

$ Chmod + x *. Sh

 

Restart tomcat.

 

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.