Always do not understand the integration of Apache2.0.0.27 and Tomcat5.0.27, so it is more convenient to use Apache Resin. It feels more convenient. During the configuration process, the operation is recorded, and it is sorted out.
Operating system Fedora Core 1 software download:
J2SDK1.4.2 J2SDK1.4.2 http: //java.sun.comapache2.0.50 httpd-2.0.50.tar.gz http: //apache.orgresin.3.0.8 resin-3.0.8.tar.gz http: // Www.caucho.com
I. Steps to install J2SDK.1.4.2.bin installation: 1). Modify file properties: chmod 755 j2sdk.1.4.2.bin2). Run file :/ j2sdk.1.4.2.bin3). Agreement, Use the carriage return to read until Yes OR NO, enter Yes, agreement agreement 4). Establish a connection: ln -s /usr/local/j2sdk.1.4.2 / usr / local / jdk5). Add environment variables, there are many I use /etc/profile.d/ to increase or modify file java.sh as: #set java environmentjava_home = / usr / local / jdkpath =.: $ Java_home / binclasspath =.: $ ClassPath: $ Java_home / libexport java_home path classpath
Description: Environment variables need to restart your computer, you can temporarily use the command to give environment variables, command as follows: export java_home = / usr / local / jdKexport path =.: $ Path: $ java_home / binExport ClassPath =.: $ ClassPath: $ java_home / lib6). Test Environment A. Enter Java, Javac has help B.Which Javac. Recommended test file: public class hello {public static void main (string [] args) {system.out.println ("Hello, i love Java! ");}} The saved file is Hello.java, perform Javac Hello.java, Java Hello. See if it is working properly, Hello, I Love Java! Description Program is operating normally. Install Java success! Second, install resin1). Download resin-3.0.8.tar.gz2). Unzip: tar -zxvf resin-3.0.8.tar.gz / usr / local3). Establish connection: ln -s / usr / local / Resin-3.0.8 / usr / local / resin4). Enter / usr / local / resin / bin Next, run ./httpd.sh start Starting Resin, if there is no error, enter: http: // ip : 8080, view the result, if the page display of Resin is successfully installed.
Third, install apache1). Download httpd-2.0.50.tar.gz2). Unzip: tar -zxvf httpd-2.0.50.tar.gz / usr / local3). Enter /usR/local/httpd-2.0.50 Catalog: CD /usR/local/HTTPD-2.0.504). Configuring Related Information: #. / Configure -prefix = / usr / local / apache2 / --enable-so -enable-ssl description: a. Can pass ./ Configurer View this command B.-Prefix Configure Apache installation path C. - Enable-So Make Apache Support Modules (SO) D.-Enable-SSL enables Apache to support SSL. 5). Compile: make6). Installation: make install7). Copy / usr / local / apache2 / bin / apachectl to /etc/rc.d/init.d/httpd, so that Apache can start from start. Cp / usr / local / apache / bin / apachectl /etc/rc.d/init.d/httpd8). Go to the directory /etc/rc.d/rc3.d9 ).ln -s ../init.d/httpd S80HTTPD automatically loads Apache when the system starts. 10). Start service: Apachectl start11). Test: Enter: http: //127.0.0.1/ Apache page Description APCHE is successful. Description: (Description of some paths after installation) a. Profile in: / etc / httpd / conf.D below, ServerRoot / etc / httpdb. Document location: DocumentRoot / Var / WWW HTML is HTM, HTML file, and CGI-BIN is the location where the CGI file is stored. C.Apache The default file location: / var / www / erro1. The configuration information of the default open page is: /etc/httpd/conf.d/welcome.conf. You can comment out to the description of Error1. d. If there is a need to modify /tc/httpd/conf/httpd.conf. 10). Modify the configuration file: a. Support Chinese AddDefaultCharset GB2312B. Support CGI and Perl: Scriptallias / CGI-BIN / "/ VAR / WWW / CGI-BIN /"