# 패키지 설치 - 설치 안되어 있을 경우
] yum -y install gcc
>error: mod_deflate has been requested but can not be built due to prerequisite failures
] yum -y install zlib-devel
#소스컴파일, 설치
] ./configure --prefix=/jboss/apache --with-mpm=worker --enable-mods-shared=all --enable-so --enable-rewrite --enable-proxy --enable-ssl
] make
] make install
#사용자계정 80port 사용
] su - root
] cd /jboss/apache/bin
] chown root:jboss httpd
] chmod 4775 httpd
#mod_jk 생성
] cd $tomcat-connectors/native
] ./buildconf.sh
] ./configure --with-apxs=/jboss/apache/bin/apxs
] make
] make install
] cd $apache_home/modules
] ls
> mod_jk.so 파일생성 확인
] cd $apache_home/conf
] vi httpd.conf
> include conf/mod_jk.conf
]cd $apache_home/conf
] vi mod_jk.conf
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
JkShmFile logs/jk.shm
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
# Send everything for context /example to worker named worker1 (ajp13)
JkMount /*.jsp lb
JkMount /*.do lb
JkMount /*.mvc lb
JkMount /jkstatus* jkstatus
# Add jkstatus for managing runtime data
<Location /jkstatus>
JkMount jkstatus
Order Deny,Allow
Allow from 127.0.0.1
Allow from 192
Allow from all
</Location>
]cd $apache_home/conf
] vi workers.properties
worker.list=lb,jkstatus
worker.template.type=ajp13
worker.template.maintain=60
worker.template.lbfactor=1
worker.template.ping_mode=A
worker.template.ping_timeout=2000
worker.template.prepost_timeout=2000
worker.template.socket_timeout=60
worker.template.socket_connect_timeout=2000
worker.template.socket_keepalive=true
worker.template.connection_pool_timeout=60
worker.template.connect_timeout=10000
worker.template.recovery_options=7
worker.server11.reference=worker.template
worker.server11.host=192.168.123.25
worker.server11.port=8009
worker.lb.type=lb
worker.lb.balance_workers=server11
worker.lb.method=Session
worker.jkstatus.type=status
[root@cwecontweb1 native]# ./buildconf.sh
buildconf: checking installation...
buildconf: autoconf not found.
You need autoconf version 2.59 or newer installed
to build mod_jk from SVN.
[root@cwecontweb1 native]# yum -y install autoconf
[root@cwecontweb1 native]# ./buildconf.sh
buildconf: checking installation...
buildconf: autoconf version 2.69 (ok)
buildconf: libtool not found.
You need libtool version 1.4 or newer installed
to build mod_jk from SVN.
[root@cwecontweb1 native]# yum -y install libtool
Loaded plugins: fastestmirror
No such command: libtool. Please use /usr/bin/yum --help
[root@cwecontweb1 native]# yum -y install libtool