linux下apache2.2.17和tomcat6.0.32整合
一、所需的文件
jdk-6u25-ea-bin-b03-linux-i586-27_feb_2011-rpm.bin
apache-tomcat-6.0.32.tar.gz
httpd-2.2.17.tar.gz
tomcat-connectors-1.2.30-src.tar.gz

二、apache下创建文件
conf/mod_jk.conf
# Load mod_jk module
LoadModule jk_module ./modules/mod_jk.so

# Where to find workers.properties
JkWorkersFile conf/workers.properties

# Where to put jk logs
JkLogFile logs/mod_jk.log

# Set the jk log level [debug/error/info]
JkLogLevel error

# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# JkRequestLogFormat set the request format
JkRequestLogFormat "%w %V %T"

# Send servlet for context /examples to worker named ajp13
JkMount /*.jsp ajp13
JkMount /*.do ajp13

JkMount /webdav/* ajp13
JkMount /androidGame/* ajp13
JkMount /androidGame_sk/* ajp13
JkMount /test/* ajp13
JkMount /platform/* ajp13

conf/workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost  #本机,若上面Tomcat主机不为localhost,作相应修改
worker.ajp13.type=ajp13  #类型
worker.ajp13.lbfactor=1  #代理数,不用修改

三、apache 的conf/httpd.conf
增加### raker set
Include conf/mod_jk.conf

参考资料

四、安装时的小插曲
http://www.apache.org/dist/tomcat/tomcat-connectors/jk/source/
卸载apache
http://hi.baidu.com/gddn/blog/item/e4bebbb754803cfc31add103.html
rpm -e  httpd-2.2.3-11.el5 --nodeps
./configure --prefix=/usr/local/apache2 --enable-module=so
删除默认apache
make clean


###memcache控制
#启动memcache (svr38k)
. /usr/jpmonitor/monitor_cache.sh &
#检查memcache启动状态
ps aux|grep memcached
#杀死所有memcache进程
killall memcached
端口号2G一个)


./memcached -d -m 1024 -u root -l localhost -p 12001
./memcached -d -m 1024 -u root -l localhost -p 12002
./memcached -d -m 1024 -u root -l localhost -p 12003

./activemq start
/etc/init.d/tomcat6.sh start
./apachectl start
lunzi   2011-04-07 00:38:18 评论:0   阅读:654   引用:0

发表评论>>

署名发表(评论可管理,不必输入下面的姓名)

姓名:

主题:

内容: 最少15个,最长1000个字符

验证码: (如不清楚,请刷新)

Copyright@2004-2010 powered by YuLog