Set up tomcat in linux

Source: Internet
Author: User
For details about how to set up tomcat in linux-Linux Enterprise Application-Linux server application, see below. Author: kiss_o

Tomcat setup in Linux:

Preparations:

1: Operating System red hat Liux 9.0 kernel: 2.4-20-8 installed.

2: Download the java installer. For linux, you can go to http://java.sun.com to download.

3: Download the tomcat installation program. For linux, you can go to http://jakarta.apache.org to download.
You can also download it from other sites, but it must be for linux.
The java name I downloaded is: j2sdk-1_4_2_12-linux-i586-rpm.bin
Tomcat name: jakarta-tomcat-4.1.31.tar.gz

Installation Process:

1: copy the j2sdk-1_4_2_12-linux-i586-rpm.bin to the/tmp directory. You can use the samba service to copy in. You can also use the U disk to copy in and so on.

2: Copy jakarta-tomcat-4.1.31.tar.gz to/usr/local.

3: Execute # sh./j2sdk-1_4_2_12-linux-i586-rpm.bin in the/tmp directory to show the license agreement
Enter yes to generate an rpm package. How can I use rpm? The ivh j2sdk-1_4_2_12-linux-i586-rpm installs the package. After installation, a java directory will be generated in/usr. At this time, your java is not available.

4: Use tar zvxf to decompress jakarta-tomcat-4.1.31.tar.gz at/usr/local.

5: Set the environment variable to/root to use ls? Command a to view the hidden file. You will see a file named. bash_profile.
Use the vi editor to edit it as follows:
QUOTE:

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.