ApacheJServ ÆÐÅ°Áö´Â ¾ÆÆÄÄ¡¸¦ À§ÇÑ ±¸¼º ³»¿ëÀ» httpd.conf ¿¡ Ãß°¡Çϱ⠶§¹®¿¡ ¼¹ö°¡ ½ÇÇà ÁßÀÎ °æ¿ì¿¡ ¼¹ö¸¦ Àç±âµ¿ÇÏ¿©¾ß ÇÑ´Ù.
¸ÕÀú, À¥ ¼¹ö¸¦ ±âµ¿ÇØ¾ß ÇÑ´Ù. ¸¸ÀÏ, ÇöÀç À¥ ¼¹ö°¡ ½ÇÇà ÁßÀ̶ó¸é Àç±âµ¿À» ÇØ¾ß ÇÑ´Ù.
# /etc/rc.d/init.d/httpd stop
# /etc/rc.d/init.d/httpd start
¾ÆÆÄÄ¡ ¼¹öÀÇ error_log ÆÄÀÏÀ» ¿¾î ÆÄÀÏÀÇ ³¡ ºÎºÐÀ» µé¿©´Ù º¸ÀÚ: tail /var/log/httpd/error_log. ´ÙÀ½Àº ÇÊÀÚ°¡ RedHat Linux 7.0¿¡¼ error_log ÆÄÀÏÀ» ¿¾î º» °ÍÀ¸·Î, ÀÌ Áß¿¡¼ ApacheJServ/1.1.2°¡ ÀÖ´Ù¸é, ¾ÆÆÄÄ¡ ¼¹ö µ¥¸ó°ú ¼ºí¸´ ¿£ÁøÀÌ Á¤»óÀûÀ¸·Î µ¿ÀÛ ÁßÀÓÀ» ¾Ë ¼ö ÀÖ´Ù.
+------------------------------------------------------------------+
| ...... |
| ... [notice] Apache/1.3.12 (Unix) (Red Hat/Linux) mod_ssl/2.6.6 |
|OpenSSL/0.9.5a mod_perl/1.24 PHP/4.0.2 ApacheJServ/1.1.2 configure|
|d -- resuming normal operations |
+------------------------------------------------------------------+
ApacheJServ ÆÐÅ°Áö¸¦ ¼³Ä¡Çϸé, /home/httpd/servlets µð·ºÅ丮¿¡ Hello, IsItWorking ¼ºí¸´ ÆÄÀϵéÀÌ »ý¼ºµÈ´Ù. À¥ ºê¶ó¿ìÀú¸¦ ¶ç¿ö À̵é Áß¿¡¼ IsItWorking ¼ºí¸´À» ½ÇÇàÇØ º¸ÀÚ.
IsItWorking ¼ºí¸´À» ½ÇÇàÇϱâ À§ÇÑ URLÀº ´ÙÀ½°ú °°´Ù.
http://localhost/servlet/IsItWorking
[[ IsItWorking ¼ºí¸´ ½ÇÇà °á°ú: À¥ ºê¶ó¿ìÀú ȸé]]
¼ºí¸´ ½ÇÇàÀÌ ¼º°øÀûÀ̸é JSP ÆÄÀÏÀ» ½ÃÇèÇÑ´Ù. ¸¸ÀÏ ¿À·ù°¡ ÀÖ´Ù¸é, JSP ÆÄÀÏ¿¡ ´ëÇؼµµ ¿À·ù¸¦ ¸¸³¯ ¼ö ¹Û¿¡ ¾ø´Ù.
GNUJSP ÆÐÅ°Áö¸¦ ¼³Ä¡Çϸé, JSP ¿¹Á¦µµ ÇÔ²² ¼³Ä¡µÈ´Ù. À§Ä¡´Â /usr/share/doc/gnujsp-1.0.1/examples ÀÌ´Ù. ÀÌ Áß hello.jsp ÆÄÀÏ(¼³Ä¡ µ¿¾È¿¡ /home/httpd/html µð·ºÅ丮¿¡ º¹»çµÈ´Ù)À» /home/httpd/html µð·ºÅ丮¿¡ º¹»çÇÏ°í, À¥ ºê¶ó¿ìÀú¸¦ ÅëÇØ Á¢±ÙÇØ º»´Ù.
hello.jsp ÆÄÀÏ¿¡ Á¢±ÙÇϱâ À§ÇÑ URLÀº ´ÙÀ½°ú °°´Ù.
http://localhost/hello.jsp
[[ hello.jsp À¥ ºê¶ó¿ìÀú ȸé]]