How to Install and Setup Apache + Jakarta-Tomcat 4.01 + Tomcat-Connectors for Linux

zhaozj2021-02-17  56

Title: hWOTO INSTALL AND SETUP APACHE JAKARTA-TOMCAT4.01 TOMCAT-Connectors for Linux version: V1.1 Release Date: 2003-03-01 16:00 Updated: 2003-03-31 12:00 : Madness (Madfool@163.net) Home: http://www.binary.com http://www.binary.com http://www.binary.com http://www.binary.com http://www.binary.com http://www.binary.com http://www.binary.com.cn Integrity!

Many friends send me, I hope to get the latest installation document, I use my spare time, install the latest operating system Red Hat Linux Release 8.0 (PSYCHE) and the latest application, and reset the Apache and Tomcat integration configuration The installation and configuration is more smooth, so update this document, I hope that everyone will help! If there is any mistake, please refer to you! Ok, no longer Luo!

1. Required package: J2SDK-1_4_1_02-linux-i586 apache2.0.40 (Red Hat Linux) Jakarta-Tomcat-4.1.18 Jakarta-Tomcat-Connectors-4.1.182. Package Download address: (1) Java J2SE1 .4.1 URL: http://java.sun.com/j2se/1.4.1/download.html (2) apache2.0.40 URL: http://httpd.apache.org (3) Tomcat 4.1.18 URL: http : //jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/bin/jakarta-tomcat-4.1.18.tar.gz (4) Tomcat Connectors-4.1.18 URL: http: / /jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.18/src/jakarta-tomcat-connectors-4.1.18-src.tar.gz3. Software Installation: (1) Unpacking the compression package Gunzip or TAR or RPM unwaves the downloaded package, follow the default mode to process the processing J2SDK installation directory: /usr/j2sdk1.4.1_02 Apache installation directory: / etc / httpd / usr / lib / apache / VAR / WWW JAKARTA-TOMCAT Installation Directory: /opt/jakarta-tomcat-4.1.18 Jakarta-Tomcat-Connectors Installation Directory: /opt/jakarta-tomcat-connectors-4.1.18-src4. Environment Variable Settings: java_home = / usr /j2sdk1.4.1_02 classpath = $ java_home / lib: $ java_home / jre / lib catalina_base = / opt / jakarta-tomcat-4.1.18 Catalina_Home = / OPT / Jakarta-Tomcat-4.1.18 path = $ java_home / bin: $ java_home / jre / bin: $ PATH: $ homen / bin5. Special installation: (1) Compile JAKARTA-TOMCAT-Connectors CD / OPT / JAKARTA-TOMCAT-Connectors-4.1.18-src / WebApp ## Enter the specified directory ./support/buildconf.sh ## Generate compilation profile ./configure --with-apxs ## Generate makefile compile file Make ## Compile Generate MOD_WEBAPP.SO Note: The generated mod_webapp.so file reminded in the Apache-2.0 directory: If you fail when generating mod_webapp.so, you can't find apxs, then you can't find your apache, no apache is installed. Development package, please download and install the development kit, then resolve this issue (this package in redhat 8 is: httpd-devel-2.0.40-8.i386.rpm)

(2) Copy the mod_webapp.so file in the Apache-2.0 directory to the directory / usr / lib / httpd / modules and check the properties of the file /usr/lib/httpd/modules/mod_webapp.so, should be consistent with other modules file properties If not the same, CHMOD chgrp chown is used to modify the 6. Test (1) Test the Java's health, as follows: Java -Version Javac -Version means the JDK installation success (2) Test Apache Health, as follows: /etc/init.d/httpd restart ## Restart Apache Server Use any browser, enter the server address Enter, you should see the Apache's default home page (3) Test Jakarta-Tomcat Health, as follows: CD $ catalina_home cd bin ./startup.sh ## Start Jakarta-Tomcat-4.1.18 service Use any browser, enter the server address and port number 8080, you should be able to see JAKARTA -tomcat-4.1.18 The default home page, for example: http://192.192.192.1:8080 ./shutdown.sh ## Close Jakarta-Tomcat-4.0.1 service 7. Integration installation settings (1) Modify / etc / httpd / conf / httpd.conf file after # Dynamic Shared Object (DSO) Support, add the following LoadModule webapp_module modules / mod_webapp.so (2) test configuration and modules, execute the following command apachectl configtest If Syntax OK appears, install and demonstrate Module The configuration is successful! (3) Modify /etc/httpd/conf/httpd.conf file Add the following WebAppConnection WarpConnection Warp localhost: 8008 Webap PDEPLOY EXAMPLES WARPCONNECTION / EXAMPLES / (4) Test the configuration again, execute the following command apachectl configTest If Syntax OK is displayed, the installation is successful! If the following error message appears Syntax Error On line 1038 of /etc/httpd/conf/httpd.conf: Invalid Virtual Host Name modifies the httpd.conf file, find the row of #servername, and add the following to the following SERVERNAME LOCALHOST: 8008 # Develop the name and port of the server (5) Check $ CATALINA_HOME / CONF / SERVER.XML The relevant configuration in the file, by default is commented, so you need to delete the comment "

转载请注明原文地址:https://www.9cbs.com/read-30294.html

New Post(0)