码迷,mamicode.com
首页 > Web开发 > 详细

apache-tomcat

时间:2020-05-07 19:42:48      阅读:80      评论:0      收藏:0      [点我收藏+]

标签:pac   tom   character   bsp   har   dex   class   cat   nbsp   

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   

apache-tomcat

标签:pac   tom   character   bsp   har   dex   class   cat   nbsp   

原文地址:https://www.cnblogs.com/hyydeali/p/12844886.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!