|
|
|
¸®´ª½ºÆÁ Go Unix Power Tools Online Book
Go Bash Guide
|
|
Read No. 33 article |
2001-08-15 20:02:54 |
|
|
|
|
NickName |
Ç®ºñ´© |
Subject |
8080 Æ÷Æ®¿Í ´Ù¸¥ ±×·ì ±ÇÇÑÀ¸·Î ¶Ç ´Ù¸¥ À¥¼¹ö °¡µ¿ Çϱâ |
|
|
¾ÆÆÄÄ¡ À¥¼¹ö¸¦ »õ·Ó°Ô ´Ù½Ã ¼³Ä¡ÇÏÁö ¾Ê°í, ±âÁ¸ÀÇ À¥ ¼¹ö µ¥¸ó¿¡ Æ÷Æ® ¹øÈ£¿Í ±×·ì
±ÇÇѸ¸À» º¯°æÇÏ¿© º¹»ç ÇÑÈÄ ¼³Á¤ ÆÄÀϸ¸À¸·Î ¶Ç ´Ù¸¥ À¥¼¹ö¸¦ ¿î¿µÇÏ´Â ¹æ¹ýÀÌ´Ù.
ÀüÁ¦ Á¶°Ç
- ±âÁ¸ÀÇ À¥¼¹ö¿¡ 8080 Æ÷Æ®±â¹Ý °¡»ó È£½ºÆ®À» ¿î¿µÇÏ°í ÀÖÁö ¾Ê´Ù.
- À¥¼¹ö¸¦ µÎ°³ ¿î¿µÇÒ ¸¸Å ÃæºÐÇÑ ¸Þ¸ð¸®°¡ ÀÖ´Ù.
- ±×·ìÀ» nobody ±ÇÇÑÀÌ ¾Æ´Ñ ´Ù¸¥ ±×·ì ±ÇÇÑÀ¸·Î ¿î¿µÇÏ°í ½Í´Ù.
[°úÁ¤1] ÇöÀçÀÇ ¾ÆÆÄÄ¡ ¼³Á¤ÆÄÀÏÀ» httpd-8080.conf ÆÄÀÏ·Î °°Àº À§Ä¡¿¡ º¹»çÇÑ´Ù.
#pwd
/usr/local/apache/conf
#cp httpd.conf httpd-8080.conf
[°úÁ¤2] httpd-8080.conf ÆÄÀÏÀ» ¿¾î ´ÙÀ½°ú °°ÀÌ Æ÷Æ® ¹øÈ£´Â 8080À¸·Î, ±×·ìÀ¸·Î
ÁöÁ¤ÇÏ°í, ÇÊ¿ä¿¡ µû¶ó ¼Æ¼Ç°ú MinSpareServers, MaxSpareServers, StartServers
¼ö¸¦ 80Æ÷Æ®·Î ¿î¿µÇÏ´Â ¼¹öº¸´Ù Àû°Ô ¼öÁ¤ÇÑ´Ù.
port 8080
user nobody
group san2
[°úÁ¤3] ¼öÁ¤ÇÑ ¼³Á¤ ÆÄÀÏ¿¡ ´ëÇؼ À¥¼¹ö¸¦ °¡µ¿ÇÑ´Ù. '-f' ¿É¼Ç ´ÙÀ½¿¡ ½Ã½ºÅÛ Àý´ë°æ·Î³ª
ServerRoot¸¦ ±â¼øÀ¸·Î ¼öÁ¤ÇÑ httpd-8080.confÆÄÀÏÀ» ÁöÁ¤ÇÑ´Ù.
#pwd
/usr/local/apache/conf
#../bin/httpd -f /conf/httpd-8080.conf
[°úÁ¤4] ps -aux|grep httpd¸í·ÉÀ̳ª À¥ ºê¶ó¿ìÀú·Î Á÷Á¢ È®ÀÎÇغ»´Ù.
http://www.domain.com:8080/
[°úÁ¤5] 8080 Æ÷Æ®·Î ¿î¿µµÇ´Â À¥ ¼¹ö¸¸ Á×À̱â
Áï 8080 Æ÷Æ®·Î ¿î¿µµÇ´Â ÇÁ·Î¼¼½º Áß Á¦ÀÏ ¾ÕÀ» ÇÁ·Î¼¼½º¸¦ Á×ÀδÙ.
#ps -ax | grep httpd-8080.conf
7714 ? S 0:00 ../bin/httpd -f conf/httpd-8080.conf
#kill 7714
|
|
Page Loading [ 0.03 Sec ]
SQL Time [ 0 Sec ]
|
|
|