¡¡
¡¡ ¡¡
¡¡ ¡¡ ¡¡ ¡¡
¡¡ ¡¡ ¡¡ ¡¡
¡¡

¡¡

Ȩ > È°¿ë°¡À̵å > È°¿ë °¡À̵å > ¸®´ª½º¿ë ¼­¹ö > ¾ÆÆÄÄ¡¿Í ÅèĹ¿¬µ¿
 
1) codns ÀÚ·á½Ç ¶Ç´Â ´ÙÀ½ »çÀÌÆ®¸¦ ÅëÇØ http://jakarta.apache.org/site/sourceindex.cgi ´Ù¿î ¹Þ½À´Ï´Ù.
ÆÄÀϸí : jakarta-tomcat-connectors-jk2-src-current.tar.gz
2) JK2 connector ¼Ò½º¸¦ ÄÄÆÄÀÏÇÏ¸é ¾òÀ» ¼ö ÀÖ´Â °ÍÀÌ mod_jk2.so ¸ðµâÀÔ´Ï´Ù. Apache À¥¼­¹ö¿Í TomcatÀ» ¿¬µ¿ÇÒ mod_jk2.so ¸ðµâÀ» ¾ò´Â °ÍÀÌ ÄÄÆÄÀÏÀÇ ¸ñÀûÀÔ´Ï´Ù.
3) Àû´çÇÑ À§Ä¡¿¡¼­ ¾ÐÃàÀ» Ç®¾îÁÝ´Ï´Ù.
mv jakarta-tomcat-connectors-jk2-src-current.tar.gz /usr/local/src
cd /usr/local/src
tar xvfz jakarta-tomcat-connectors-jk2-src-current.tar.gz
4) ¾ÐÃàÀÌ Ç®¸®¸é jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2·Î À̵¿ÇÕ´Ï´Ù.
cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
5) ´ÙÀ½°ú °°ÀÌ configure¸¦ ½ÇÇàÇÏ°í make·Î ÄÄÆÄÀÏÀ» ÇÕ´Ï´Ù.
./configure --with-apxs2=/usr/sbin/apxs
make
6) ÇöÀç µð·ºÅ丮¸¦ ±âÁØÀ¸·Î ../build/jk2/apache2/ÀÇ °æ·Î¿¡ ¸¸µé¾îÁø mod_jk2.so ÆÄÀÏÀ»
¾ÆÆÄÄ¡ ¸ðµâÀÌ ÀÖ´Â µð·ºÅ丮·Î º¹»çÇÕ´Ï´Ù.
pwd
/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2
cd ../build/jk2/apache2
ls
(mod_jk2.so ÆÄÀÏÀÌ Á¸ÀçÇÏ´ÂÁö È®ÀÎÇÕ´Ï´Ù.)
cp mod_jk2.so /usr/lib/apache/ (·¹µåÇÞ¿¡¼­´Â ¾ÆÆÄÄ¡ ¸ðµâÀÌ /usr/lib/apache µð·ºÅ丮¿¡ À§Ä¡ÇÕ´Ï´Ù.)
7) /etc/httpd/conf/httpd.conf ÆÄÀÏÀ» vi¿Í °°Àº ÆíÁý±â·Î ¿­¾î LoadModule ºÎºÐÀ» ã¾Æ¼­ ´ÙÀ½À» Ãß°¡ÇÕ´Ï´Ù.
LoadModule jk2_module lib/apache/mod_jk2.so
DirectoryIndex ºÎºÐÀ» ã¾Æ¼­ index.jsp¸¦ Ãß°¡ÇÕ´Ï´Ù.
DirectoryIndex index.html index.html.var index.php index.phtml index.jsp
8) /etc/httpd/conf µð·ºÅ丮¿¡ workers2.properties ÆÄÀÏÀ» ¾Æ·¡ÀÇ ¼³Á¤ ³»¿ëÀ¸·Î ±¸¼ºÇÕ´Ï´Ù.
cd /etc/httpd/conf
vi worker2.properties
¡¡ # Shared memory handling. Needs to be set.
[shm]
file=/var/log/httpd/shm.file size=1048576
# Example socket channel, explicitly set 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
# Announce a "status" worker
[status:status]
# Uri mapping
[uri:/*.jsp]
worker=ajp13:localhost:8009
[uri:/status/*]
worker=status:status

9) ½ÇÇà½ÃÅ°±âÀü¿¡ µð·ºÅ丮¿¡¼­ /etc/httpd/conf µð·ºÅ丮¿¡ ¿¬°áµÈ ¸µÅ© ÆÄÀÏÀ» ¸¸µé¾îÁÝ´Ï´Ù. ÀÌ°ÍÀº mod_jk2.so ¸ðµâÀ» ÄÄÆÄÀÏ ÇÒ ¶§ Apache Home Directory¸¦ /usr ·Î ÀνÄÇ߱⠶§¹®¿¡ workers2.properties ÆÄÀÏÀ» /usr/conf¿¡¼­ ã±â ¶§¹®ÀÔ´Ï´Ù. ´ÙÀ½°ú °°ÀÌ ½ÇÇàÇÕ´Ï´Ù.
¡¡ cd /usr
ln -s /etc/httpd/conf ./conf

10) ¸ðµç ¼³Á¤ÀÌ ³¡³ª¸é Apache À¥¼­¹ö¸¦ ½ÇÇàÇϰųª ÀçºÎÆà ÇÕ´Ï´Ù.
¡¡
¡¡

»õ ÆäÀÌÁö 1
¡¡