zoukankan      html  css  js  c++  java
  • apache-tomcat

    Apache

    yum -y install httpd httpd-devel gcc gcc-c++

    Tomcat

    jdk

    rpm -ivh jdk-8u20-linux-x64.rpm

    vi /etc/profile

    ###java use####

    export JAVA_HOME=/usr/java/jdk1.8.0_20

    export JAVA_BIN=/usr/java/jdk1.8.0_20/bin

    export JRE_HOME=${JAVA_HOME}/jre

    export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

    export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH

    退

    /etc/profile 

    source /etc/profile  

    Java

    java -version  

    Tomcat

    mv apache-tomcat-6.0.43/ /usr/local/tomcat

    cd /usr/local/tomcat/bin/

    tomcat

    ./startup.sh 

    ps -ef | grep tomcat

    访Tomcat

    Apachemod_jk

    uri访(mod_jk)

    tar zxf jakarta-tomcat-connectors-1.2.15-src.tar.gz

    cd jakarta-tomcat-connectors-1.2.15-src/jk/native/

    ./configure --with-apxs=/usr/sbin/apxs

    make

    make  install

    mod_jk.so

    ll /etc/httpd/modules/mod_jk.so

    mod_jk

    cd /usr/local/src/jakarta-tomcat-connectors-1.2.15-src/jk/conf/

    cp workers.properties /etc/httpd/conf

    workers.properties

    vim /etc/httpd/conf/workers.properties

    workers.properties

    worker.list=worker1

    worker.worker1.type=ajp13

    worker.worker1.host=172.18.31.3localhost

    worker.worker1.port=8009

    Apache

    vim /etc/httpd/conf/httpd.conf

    DirectoryIndexindex.jsp

    LoadModule jk_module modules/mod_jk.so #mod_jk.so

    JkWorkersFile  /etc/httpd/conf/workers.properties  #mod_jk

    JkMount /*.jsp          worker1#.jspworker1

    service httpd restart   

  • 相关阅读:
    Python-控制流
    字符串创建运算符#
    Python-操作符和表达式
    Python-基础数据类型
    重载、重写和隐藏
    java加载jdbc驱动三种方式的比较
    Mysql 索引复习笔记
    Java中如何指定跳出多重嵌套循环
    LeetCode第[2]题(Java):Add Two Numbers (链表相加)——Medium
    LeetCode第[26]题(Java):Remove Duplicates from Sorted Array 标签:Array
  • 原文地址:https://www.cnblogs.com/hyydeali/p/12844892.html
Copyright © 2011-2022 走看看