The integration of Tomcat and Apache Web server under Linux

Source: Internet
Author: User
Tags chmod tomcat

1. Introduction

Internet/intranet based on web technology has been widely used in recent years, Intranet is based on TCP/IP protocol, the web as the core intranet, the user through Low-cost, An Easy-to-use client browser can access the data you need on the corporate web site anytime, anywhere. The consistency of the browser client interface avoids the diversity of C/S mode client programs, while the Open and standards-based connection schemes on the server side make it easy for enterprises to connect with the outside world through the Internet, and the dynamic and interactive publishing methods of Web information fundamentally change the service quality of the enterprise. Increased business opportunities for businesses.

In the view of many users, the success or failure of a Web site depends primarily on the content and functionality it provides, and the Web servers that support the content and functionality play a very important role.

2. Tomcat Container

Tomcat is a free open source Serlvet container, a core project in the Apache Foundation's Jakarta Project, developed by Apache,sun and other companies and individuals. Thanks to Sun's involvement and support, the latest servlet and JSP specifications are always reflected in Tomcat.

Tomcat is a solid stand-alone Web server and Servlet Container, but its Web server is not as complete as many of the more robust Web servers, such as the Apache Web server (for example, Tomcat does not have a large number of optional modules). However, Tomcat is free Open-source software, and many experts are committed to its development.

Install Tomcat under 2.1 Linux

You need to install J2SDK (Java 2 Software Development Kit) before installing Tomcat, and the steps to install J2SDK are as follows:

1) to http://www.java.sun.com download j2sdk, such as J2sdk-1_4_2_04-linux-i586-rpm.bin.

2 in the terminal to the directory where the J2sdk-1_4_2_04-linux-i586-rpm.bin, enter the command chmod +x j2sdk-1_4_2_04-linux-i586-rpm.bin, add the permissions to execute.

3 Execute the command./j2sdk-1_4_2_04-linux-i586-rpm.bin, generate j2sdk-1_4_2_04-linux-i586.rpm files.

4 Execute the command chmod +x j2sdk-1_4_2_04-linux-i586.rpm and add the execution permissions to j2sdk-1_4_2_04-linux-i586.rpm.

5 Execute command RPM–IVH j2sdk-1_4_2_04-linux-i586.rpm, install J2SDK.

6 The installation interface will appear authorization agreement, press ENTER to accept, the J2SD installed in/usr/java/j2sdk1.4.2_04.

7 Set the environment variable, in the/etc/profile.d/directory to establish a file java.sh, the contents of the document are as follows:

#set Java Environment

Export Java_home=/usr/java/j2sdk1.4.2_04

Export classpath=.: $JAVA _home/lib: $JAVA _home/jre/lib:/usr/java/jdbc

Export path= $JAVA _home/bin: $JAVA _home/jre/bin: $PATH

8 Execute command chmod 755/etc/profile.d/java.sh, assign permissions to java.sh.

9 in the terminal to execute the command javac–help and java–version respectively, if you see the information, it means that J2SDK has been successfully installed.

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.