Apache httpd-2.0.47 + Tomcat 5.0 OR tomcat-4.1.24 + jk2 +(轉)
Apache httpd-2.0.47 + Tomcat 5.0 OR tomcat-4.1.24 + jk2 +(轉)[@more@]務器環境: RedHat Linux 8.0J2sdk1.4.1_02Tomcat 4.1.24 binary OR Tomcat 5.0.12 binary Apache 2.0.47 built from source jk2 connector source from jakarta.apache.org 安裝JDK:下載: j2sdk-1_4_1_02-linux-i586.bin 把jdk 安裝在/usr/local/j2sdk1.4.1_02在/usr/local 下建立 軟連線 jdk #ln -s /usr/local/j2sdk1.4.1_02 /usr/local/jdk[user@host]# cat /etc/profile.d/java.sh # set java environment export JAVA_HOME=/usr/local/jdk export PATH=$PATH:$JAVA_HOME/bin export CLASSPATH=$JAVA_HOME/lib #更改shell檔案屬性:#chmod 755 /etc/profile.d/java.sh #檢視是否正確#which java /usr/local/jdk/bin/java#cd /usr/local/src/ #tar -xzvf httpd-2.0.47.tar.gz #cd httpd-2.0.47#配置apache 支援動態module 載入#./configure "--with-layout=Apache" "--prefix=/usr/local/apache" "--enable-module=so" "--enable-module=setenvif" "--enable-module=rewrite" "--with-mpm=prefork"#make #make install #修改http.conf 具體的修改請參考apache2.0文件# 或者檢視 StartServers 10 MinSpareServers 25MaxSpareServers 50ServerLimit 2000MaxClients 1500 #Apache可以同時處理的請求MaxRequestsPerChild 10000 安裝Php :下載: php-4.3.3.tar.gz#cd /usr/local/src #tar -xzvf #php for apache 以apache modules的方式執行 ./configure --with-apxs2=/usr/local/apache/bin/apxs #php run like shell 以單獨的shell方式執行./configure --prefix=/usr/local/php#php for apache ./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-track-vars --enable-debug --enable-url-includes --enable-sockets --with-config-file-path=/usr/local/apache/conf #php.ini檔案放的目錄#下面的引數是安裝PHP + gd庫 --with-gd=/usr/local --enable-gd-native-ttf --with-ttf=/usr/local --with-jpeg-dir=/usr/local --with-zlib-dir=/usr/local --with-png-dir=/usr/local #make #make install #ls -l /usr/local/apache/modules/libphp4.so #存在 安裝成功#修改apache http.conf 新增LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php安裝Tomcat:#cd /usr/local #tar -xzvf jakarta-tomcat-4.1.24.tar.gz #ln -s jakarta-tomcat-4.1.24 tomcat #測試Tomcat正常安裝:#/usr/local/tomcat/bin/startup.sh #透過IE Tomcat的頁面正常顯示 安裝JK2 :#cd /usr/local/src#tar -xzvf jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz #cd jakarta-tomcat-connectors-jk2-2.0.2-src #cd jk/native2#chmod 755 buildconf.sh #./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-EAPI#make #make install #如果make install 不成功需要手工釋出mod_jk2.so #cd /usr/local/src/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2#cp *.so /usr/local/apache/modules/配置$CATLINA/conf/server.xmldebug="0"/>debug="0"/>port="8080" minProcessors="5" maxProcessors="75"enableLookups="true" redirectPort="8443"acceptCount="100" debug="0" connectionTimeout="-1"useURIValidationHack="false" disableUploadTimeout="true" />port="8009" minProcessors="5" maxProcessors="75"enableLookups="true" redirectPort="8443"acceptCount="10" debug="0" connectionTimeout="-1"useURIValidationHack="false"protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/><!-- An Engine represents the entry point (within Catalina) that processesevery request. The Engine implementation for Tomcat stand aloneanalyzes the HTTP headers included with the request, and passes themon to the appropriate Host (virtual host). --><!-- Define the top level container in our container hierarchy --><!-- Global logger unless overridden at lower levels -->prefix="catalina_log." suffix=".txt"timestamp="true"/><!-- Define the default virtual host -->unpackWARs="true" autoDeploy="true">directory="logs" prefix="localhost_log." suffix=".txt"timestamp="true"/> 這個地方tomcat4.* 和tomcat 5.* 少有不同. 對tomcat5. 可以註釋掉.編輯#vi /usr/local/tomcat/conf/jk2.properties # list of needed handlers.handler.list=channelSocket,request# Override the default port for the channelSocketchannelSocket.port=8009#編輯檔案: #vi /usr/local/apache/conf/workers2.properties # only at beginnin. In production uncomment it out[logger.apache2]level=DEBUG[shm]file=/usr/local/apache/logs/shm.filesize=1048576# Example socket channel, override port and host.[channel.socket:localhost:8009]port=8009host=127.0.0.1# define the worker[ajp13:localhost:8009]channel=channel.socket:localhost:8009# Uri mapping[uri:192.168.0.90/*.jsp]worker=ajp13:localhost:8009編輯http.conf#修改DocumentRoot "/usr/local/tomcat/webapps"#新增index.jspDirectoryIndex index.html index.html.var index.jsp LoadModule jk2_module modules/mod_jk2.soOrder deny,allowDeny from all ## Order deny,allow# Deny from all# Order Allow,DenyServerName ServerAlias wwwServerAlias localhostServerAlias 192.168.0.90ServerAdmin webmater@xxx.comDocumentRoot /usr/local/tomcat/webappsErrorLog logs/home.net-errorlogCustomLog logs/home.net-access.log commonJkUriSet worker ajp13:localhost:8009 啟動apache . 和tomcat 從$TOMCAT_HOME/logs/catalina.out中可以看到啟動的記錄. 如果透過HTTP訪問到了證明你的安裝成功了. 總體感覺安裝TOMCAT 沒有安裝RESION 方便!
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8225414/viewspace-937899/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Apache連線多臺tomcat,透過JK2ApacheTomcat
- 配置Apache Server + Tomcat (轉)ApacheServerTomcat
- apache+tomcat配置指南(轉)ApacheTomcat
- 實戰apache+tomcat整合(轉)ApacheTomcat
- Redhat9.0 Apache2+Php5.0+Mysql4.0配置(轉)RedhatApachePHPMySql
- [轉]Apache與Tomcat 區別及聯絡ApacheTomcat
- 安裝配置Tomcat + Apache + mod_jk(轉)TomcatApache
- 實戰apache+tomcat+mod_jk整合(轉)ApacheTomcat
- 使用 Apache OpenWebBeans 和 Apache Tomcat | JavalobbyApacheWebBeanTomcatJava
- Tomcat 5.0.xx /WEB-INF 目錄使用說明(轉)TomcatWeb
- Apache Tomcat簡介ApacheTomcat
- apache tomcat 安裝ApacheTomcat
- apache +tomcat 橋接ApacheTomcat橋接
- 紅旗5.0下apache+php+mysql+phpMyAdmin全攻略(轉)ApachePHPMySql
- FreeBSD下安裝Apache+PHP+MySQL+Tomcat(轉)ApachePHPMySqlTomcat
- linux+apache+tomcatLinuxApacheTomcat
- Apache tomcat 配置總結ApacheTomcat
- 給Tomcat,Apache配置gzip壓縮(HTTP壓縮)功能 (轉)TomcatApacheHTTP
- Linux下Apache與Tomcat整合的簡單方法(轉)LinuxApacheTomcat
- Tomcat 5.0 資料來源使用薦Tomcat
- OpenBSD WEB基本應用Apache + php4 + mysql + ftp + tomcat(轉)WebApachePHPMySqlFTPTomcat
- Apache與Tomcat4整合構建jsp環境(轉)ApacheTomcatJS
- GCC4.1 + apache2+tomcat5 + mod_jk整合(轉)GCApacheTomcat
- apache和tomcat的區別ApacheTomcat
- apache+tomcat負載均衡ApacheTomcat負載
- 全面升級 —— Apache RocketMQ 5.0 SDK 的新面貌ApacheMQ
- redhat自帶apache2.0和tomcat4.1的安裝(轉)RedhatApacheTomcat
- web server apache tomcat11-24-Virtual Hosting and TomcatWebServerApacheTomcat
- Apache Tomcat檔案包含漏洞分析ApacheTomcat
- Apache Tomcat 8.5.40 與 7.0.94 釋出ApacheTomcat
- Apache、Nginx、Tomcat、PHP的區別ApacheNginxTomcatPHP
- Apache與Tomcat 區別聯絡ApacheTomcat
- ThinkPHP5.0 Linux Apache/Nginx重寫URL配置PHPLinuxApacheNginx
- apache2.2+PHP5.2.3+mysql5.0+gd+zend+phpmyadminApachePHPMySql
- 快速配置Apache2.X + Tomcat 4.X + Linux/Windows (轉)ApacheTomcatLinuxWindows
- Mac Apache Tomcat WebServer 伺服器配置MacApacheTomcatWebServer伺服器
- Apache2.4+Tomcat7叢集搭建ApacheTomcat
- 解決 apache tomcat 編碼問題ApacheTomcat