• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    Apache httpd-2.0.47 + Tomcat 5.0 OR tomcat-4.1.24 + jk2 +

    發布: 2007-6-21 12:06 | 作者:   | 來源:   | 查看: 39次 | 進入軟件測試論壇討論

    領測軟件測試網

       
      務器環境:

    RedHat Linux 8.0
    J2sdk1.4.1_02
    Tomcat 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文檔
    # 或者查看 http://www.cnfug.org/journal/3/02.html
    <IfModule prefork.c>
    StartServers 10
    MinSpareServers 25
    MaxSpareServers 50
    ServerLimit 2000
    MaxClients 1500 #Apache可以同時處理的請求
    MaxRequestsPerChild 10000
    </IfModule>

    安裝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 http://yourIP:8080/ 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.xml
    <Server port="8005" shutdown="SHUTDOWN" debug="0">

    <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"
    debug="0"/>
    <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
    debug="0"/>

    <Service name="Tomcat-Standalone">

    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    port="8080" minProcessors="5" maxProcessors="75"
    enableLookups="true" redirectPort="8443"
    acceptCount="100" debug="0" connectionTimeout="-1"
    useURIValidationHack="false" disableUploadTimeout="true" />

    <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
    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 processes
    every request. The Engine implementation for Tomcat stand alone
    analyzes the HTTP headers included with the request, and passes them
    on to the appropriate Host (virtual host). -->

    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="0">


    <!-- Global logger unless overridden at lower levels -->
    <Logger className="org.apache.catalina.logger.FileLogger"
    prefix="catalina_log." suffix=".txt"
    timestamp="true"/>

    <!-- Define the default virtual host -->
    <Host name="localhost" debug="0" appBase="webapps"
    unpackWARs="true" autoDeploy="true">

    <Logger className="org.apache.catalina.logger.FileLogger"
    directory="logs" prefix="localhost_log." suffix=".txt"
    timestamp="true"/>
    <Context path="" docBase="" debug="0"/>

    </Host>
    </Engine>
    </Service>
    </Server>

    這個地方tomcat4.* 和tomcat 5.* 少有不同.
    <Context path="" docBase="" debug="0"/>
    對tomcat5. 可以注釋掉.

    編輯
    #vi /usr/local/tomcat/conf/jk2.properties
    # list of needed handlers.
    handler.list=channelSocket,request
    # Override the default port for the channelSocket
    channelSocket.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.file
    size=1048576

    # Example socket channel, override port and host.
    [channel.socket:localhost:8009]
    port=8009
    host=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.jsp
    DirectoryIndex index.html index.html.var index.jsp


    LoadModule jk2_module modules/mod_jk2.so

    <Directory ~ "\CVS" >
    Order deny,allow
    Deny from all
    </Directory>
    #<Directory ~ "\WEB-INF" >
    # Order deny,allow
    # Deny from all
    #</Directory>

    <Location /WEB-INF/>
    Order Allow,Deny
    </Location>

    <VirtualHost *>
    ServerName www.home.net
    ServerAlias www
    ServerAlias localhost
    ServerAlias 192.168.0.90
    ServerAdmin webmater@xxx.com
    DocumentRoot /usr/local/tomcat/webapps

    ErrorLog logs/home.net-errorlog
    CustomLog logs/home.net-access.log common

    <Location "/*.jsp">
    JkUriSet worker ajp13:localhost:8009
    </Location>
    </VirtualHost>

    啟動apache . 和tomcat
    從$TOMCAT_HOME/logs/catalina.out中可以看到啟動的記錄.
    如果通過HTTP訪問到了證明你的安裝成功了.
    總體感覺安裝TOMCAT 沒有安裝RESION 方便!

    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/


    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備2023014753號-2
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>