´ÙÀ½ ÀÌÀü Â÷·Ê

6. ApacheJServ RPM

ApacheJServ´Â ¼Ò½º ÆÄÀÏ ÇüÅ·Π¹èÆ÷µÈ´Ù. À̸¦ ÄÄÆÄÀÏ ÇÏ¿© ½ÇÇà ÆÄÀÏÀ» ¸¸µé°í, ÇÔ²² ¹èÆ÷µÇ´Â »ùÇÃÀ» Âü°íÇÏ¿© ½ÇÇà¿¡ ÇÊ¿äÇÑ ±¸¼º ÆÄÀϵéÀ» Á÷Á¢ ±¸¼ºÇÏ¿© ¸¸µé¾î¾ß ÇÑ´Ù. ÀÌ °úÁ¤Àº INSTALL ÆÄÀÏ¿¡ »ó¼¼ÇÏ°Ô ¼³¸í µÇ¾î ÀÖÁö¸¸, Ãʺ¸ÀÚ¿¡°Ô´Â ¿©ÀüÈ÷ ¾î·Æ°í, ¶ÇÇÑ ¿©°£ ¹ø°Å·Î¿î °Ô ¾Æ´Ï´Ù.

ApacheJServ´Â ¾ÆÁ÷ º£Å¸ ²¿¸®Ç¥¸¦ ¶¼Áö ¸øÇß´Ù. ¸ÓÁö ¾Ê¾Æ ´ÙÀ½ º£Å¸ ¹öÀüÀÌ ³ª¿À°Å³ª Á¤½Ä ¹öÀüÀÌ ¹ßÇ¥µÉ °ÍÀÌ´Ù. ÀÌ¿¡ ´ëºñÇÏÁö ¾Ê´Â´Ù¸é, ¸Å¹ø ¾ÆÆÄÄ¡¸¦ ´Ù½Ã ÄÄÆÄÀÏÇÏ´Â µîÀÇ ¼ö°í¿¡ Àγ»½ÉÀ» Å°¿ö¾ß ÇÒ Áö ¸ð¸¥´Ù. ±×·± ÀÏÀ», °¡´ÉÇÏ´Ù¸é, ÇÏÁö ¾ÊÀ» ¼ö´Â ¾øÀ»±î?

±×·¡¼­, °£ÆíÇÑ ¼³Ä¡¿Í Á¦°Å¸¦ À§ÇÏ¿©, À缳ġÇÏ´Â °æ¿ì ¾ÆÆÄÄ¡¸¦ ÄÄÆÄÀÏ ÇÏ´Â ÀÏ¿¡¼­ ÀÚÀ¯·Î¿öÁö±â À§ÇÏ¿© RPM ÆÄÀÏÀ» ¸¸µé¾ú´Ù.

6.1 ÆÐÅ°Áö ±¸¼º ³»¿ë

ApacheJServ ÆÐÅ°Áö¸¦ ¸¸µé±â À§ÇØ »ç¿ëÇÑ ±¸¼º ³»¿ëÀº ´ÙÀ½°ú °°´Ù.

./configure \
        -prefix=/usr                        \
        -disable-debugging                  \
        -with-apxs=/usr/sbin/apxs           \
        -with-logdir=/var/log/httpd         \
        -with-servlets=/home/httpd/servlets \
        -with-jdk-home=/usr/local/java      \
-with-JSDK=$RPM_BUILD_DIR/classpathx_servlet-19991120/servlet-2.0.jar

6.2 ÆÐÅ°Áö ¼³Ä¡

¾ÆÆÄÄ¡¿Í JDK°¡ ¼³Ä¡µÇ¾î ÀÖ´Ù¸é, ´ÙÀ½°ú °°ÀÌ ApacheJServ ÆÐÅ°Áö¸¦ ¼³Ä¡ ÇÑ´Ù.

# rpm -i ApacheJServ-1.1-b3.i386.rpm

¼³Ä¡ °úÁ¤¿¡ ¿À·ù°¡ ¾ø´Ù¸é, ÁöÁ¤µÈ µð·ºÅ丮¿¡ ÆÄÀÏÀÌ º¹»çµÇ°í, /etc/httpd/conf/httpd.conf ÆÄÀÏ¿¡ ApacheJServ¸¦ À§ÇÑ ±¸¼º ³»¿ëÀ» Ãß°¡ ÇÑ´Ù.

ÆÐÅ°Áö ¼³Ä¡·Î ÀÎÇØ »ý¼ºµÇ´Â µð·ºÅ丮¿Í Ãß°¡µÇ´Â ÆÄÀÏÀº ´ÙÀ½ÀÇ Ç¥¿Í °°´Ù.

+---------------------------+-------------------+------------------+
|         µð·ºÅ丮          |      ÆÄ   ÀÏ      |     ¼³   ¸í      |
+---------------------------+-------------------+------------------+
| /etc/httpd/conf/jserv/    | jserv.conf        |                  |
|                           | jserv.properties  | ±¸¼º ÆÄÀÏ        |
|                           | zone.properties   |                  |
+---------------------------+-------------------+------------------+
| /etc/httpd/modules/       | ApacheJServ.jar   | ¼­ºí¸´ ¿£ÁøÀ»    |
|                           |                   |±¸ÇöÇÑ Å¬·¡½º ÆÄÀÏ|
+---------------------------+-------------------+------------------+
| /home/httpd/classes/      | servlet-2.0.jar   | JSDK             |
+---------------------------+-------------------+------------------+
| /home/httpd/servlets/     | Hello.class       | ¼­ºí¸´ ¿¹Á¦      |
|                           | IsItWorking.class |                  |
+---------------------------+-------------------+------------------+
| /usr/doc/ApacheJServ-1.1/ |                   |¹®¼­ ÆÄÀ쵎       |
+---------------------------+-------------------+------------------+


´ÙÀ½ ÀÌÀü Â÷·Ê