iWiz ShareBase

IT Specialist À±ÅÂÇöÀÇ iWiz ShareBase´Â IT»Ó ¾Æ´Ï¶ó °¢Á¾ Àâ´ÙÇÑ Áö½ÄµéÀ» ÇÔ²² ³ª´©´Â Áö½Ä°øÀ¯ Ä¿¹Â´ÏƼÀÔ´Ï´Ù.

iWiz,ShareBase,À±ÅÂÇö,Java,JSP,EJB,IT,Á¤º¸±â¼ú,À¥ÇÁ·Î±×·¡¹Ö,PHP,ASP,DBMS,MySQL,¼­¹ö,³×Æ®¿öÅ©,server,network,WAS,À¥¾ÖÇø®ÄÉÀ̼Ç,ºí·Î±×,blog,À¥¼­¹ö,DB,¿À¶óŬ,oracle,mysql,JRun,À¥·ÎÁ÷,ÅèĹ,tomcat,¾ÆÆÄÄ¡,ÀÚµ¿Â÷,EF½î³ªÅ¸,·Î¶Ç 6/45

°¶·¯¸® Pixelgrapher.com | ·Î¶Ç 6/45 ¹øÈ£»ý¼º ¹× Åë°è µ¥ÀÌÅÍ | Àüü±â»çº¸±â | Àüü±Û #1 | Àüü±Û #2 | Àüü±Û #3 | Àüü±Û #4 | Àüü±Û #5 | Àüü±Û #6 | Àüü±Û #7 | Àüü±Û #8 | Àüü±Û #9 | Àüü±Û #10 |
HOME iWiz
ShareBase
Remember 0523 & 0818
Áö½ÄÀº ³ª´­¼ö·Ï Ä¿Áý´Ï´Ù - iWiz's ShareBase
À¥ÇÁ·Î±×·¡¹Ö(±âŸ) PHP, ASP, Perl, CGI µî °¢Á¾ À¥ÇÁ·Î±×·¡¹Ö¿¡ °üÇÑ ÀÚ·áµéÀÔ´Ï´Ù.


  iWiz(2006-06-22 21:38:41, Hit : 9295, Vote : 0
 http://www.iwiz.pe.kr
 http://linux.xno.cc/bbs/read.php?table=bbs4&no=73

mod_throttle ¸ðµâÀ» ÀÌ¿ëÇÑ »ç¿ëÀÚ Æ®·¡ÇÈ Á¦¾î


Apache + Throttle(mod_throttle) À» ÀÌ¿ëÇؼ­ Æ®·¡ÇÈÁ¤º¸¸¦ ±¸ÇÕ´Ï´Ù. 

[Throttle Status] 
http://ÀÚ½ÅÀǵµ¸ÞÀÎ/throttle-me 
½Ç½Ã°£À¸·Î º¼ ¼ö ÀÖÀ¸¸ç ÀÚ½ÅÀÇ ÀÏÀÏ Æ®·¡ÇÈ·®ÀÌ Áõ°¡½Ã À¥¼­¹ö¿¡¼­ Throttle ¿¬µ¿ÇØ Àֱ⠶§¹®¿¡ ÃÊ°ú½Ã ÀÚµ¿ÀûÀ¸
·Î Æ®·¡ÇÈ·® ÃÊ°ú ¾È³» ÆäÀÌÁö°¡ ³ª¿À¸é ÀÏÀÏ Æ®·¡ÇÈ·®À¸·Î Á¦ÇÑÀ̹ǷΠÇÏ·ç°¡ Áö³ª¸é ´Ù½Ã ÃʱâÈ­·Î ´Ù½Ã °è»êÇؼ­ 
±× Á¤º¸°¡ °è»êµË´Ï´Ù. 

% - Çã¿ëµÈ Æ®·¡ÇÈ¿¡¼­ ¸îÆÛ¼¾Æ®¸¦ »ç¿ë
Hits - µµ¸ÞÀÎÀÇ È÷Æ®¼ö 
Refused - Æ®·¡ÇÈÀÌ ÃÊ°úÇÏ¿´À»¶§ Á¢¼ÓÇÏ¿© ¿äû°ÅºÎµÈ Ƚ¼ö
KBytes Sents - ȸ¿ø´ÔÀÇ µµ¸ÞÀÎ Æ®·¡ÇÈ·® 
KBytes Per Hits - ÇÑ È÷Æ®´ç Æ®·¡ÇÈ·®ÀÇ Æò±ÕÄ¡
Polocy - Volume Æ®·¡ÇÈ Á¦ÇÑÀ» ¾çÀ¸·Î °è»ê
Limits - Æ®·¡ÇÈ Á¦ÇѾç Á¦ÇѼ± ÀÔ´Ï´Ù.
Period - 1d ÇÏ·ç 24½Ã°£À» ±âÁØÀ¸·Î Æ®·¡ÇÈÀ» °è»êÇÑ´Ù´Â ¶æÀÔ´Ï´Ù.
Period Elapsed - 24½Ã°£Áß ¼Ò¿äµÈ ½Ã°£
Idle time - ÃÖÁ¾ È÷Æ®ÈÄ ¿äû ´ë±â½Ã°£

ÂüÁ¶ »çÀÌÆ® :  http://www.snert.com/Software/mod_throttle/ 

##############
## ¼³Ä¡Çϱâ ##
##############

ÀϹÝÀûÀ¸·Î ¾ÆÆÄÄ¡¿¡¼­ mod_throttle À» ¿¬µ¿Çϱâ À§Çؼ­´Â 2°¡Áö ¹æ½ÄÀÇ ÄÄÆÄÀÏÀ» Áö¿øÇÏÁö¸¸ ¿©±â¼­´Â 
DSO ¹æ½ÄÀ¸·Î ¼³Ä¡Çϵµ·Ï ÇÑ´Ù.

---------------------------------------------------------------------
STATIC ¹æ½Ä (APACHE mod_throttle ºÎºÐ)

./configure --disable-shared=throttle 
--add-module=/usr/local/mod_throttle-3.1/mod_throttle.c 

---------------------------------------------------------------------
DSO ¹æ½Ä 

cd /usr/local/mod_throttle-3.1
make install
mod_throttle.so¸¦ apacheµð·ºÅ丮 libexec¾È¿¡ º¹»çÇØÁÝ´Ï´Ù.
±×·±ÈÄ httpd.conf¿¡ mod_throttleºÎºÐÀ» ¼öÁ¤.
(compile½Ã apxs¿¡ À§Ä¡¸¦ Makefile¾È¿¡ Àüü°æ·Î·Î º¯°æÈÄ makeÇϼ¼¿ä.)
LoadModule throttle_module libexec/mod_throttle.so
AddModule mod_throttle.c
---------------------------------------------------------------------

¾ÆÆÄÄ¡¿¡¼­ mod_throttle À» ¼³Ä¡Çϱâ À§ÇÑ ¼ø¼­

1. ´Ù¿î·Îµå
2. ÄÄÆÄÀÏ / ¼³Ä¡
3. apache ¼³Á¤ÆÄÀÏ ³»ºÎ¿¡¼­ÀÇ mod_throttle ºÎºÐÀ» ÀνÄ
4. ¹öÃò¾ó È£½ºÆà ºÎºÐÀÇ °¢ »ç¿ëÀÚ¸¶´Ù °¢°¢ Æ®·¡ÇÈ Á¦¾î
5. Æ®·¡ÇÈÈ®ÀÎ 

¡á ´Ù¿î·Îµå
[root@www download]# wget http://www.snert.com/Software/mod_throttle/mod_throttle312.tgz
[root@www download]# tar xzf mod_throttle312.tgz
[root@www download]# cd mod_throttle-3.1.2/
[root@www mod_throttle-3.1.2]# ll
total 188
-rw-r--r--  1 111 users  7233 Dec  3  2000 CHANGES.txt
drwxr-xr-x  2 111 users  4096 Dec  2  2000 Img
-rw-r--r--  1 111 users  1525 Dec  2  2000 LICENSE.txt
-rw-r--r--  1 111 users  1009 Dec  2  2000 Makefile
-rw-r--r--  1 111 users 26492 Dec  3  2000 index.shtml
-rw-r--r--  1 111 users 97711 Dec  3  2000 mod_throttle.c
-rw-r--r--  1 111 users   277 Dec  2  2000 patch.proxy_util.c
-rw-r--r--  1 111 users     4 Dec  3  2000 version3.cnt

¡á ÄÄÆÄÀÏ / ¼³Ä¡
[root@www mod_throttle-3.1.2]# make install
apxs -c    mod_throttle.c
gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DUSE_HSREGEX -fpic -DSHARED_MODULE -
I/usr/local/apache2/include  -c mod_throttle.c
gcc -shared -o mod_throttle.so mod_throttle.o
apxs -i -a -n 'throttle' mod_throttle.so
[activating module `throttle' in /usr/local/apache2/conf/httpd.conf]
cp mod_throttle.so /usr/local/apache2/libexec/mod_throttle.so
chmod 755 /usr/local/apache2/libexec/mod_throttle.so
cp /usr/local/apache2/conf/httpd.conf /usr/local/apache2/conf/httpd.conf.bak
cp /usr/local/apache2/conf/httpd.conf.new /usr/local/apache2/conf/httpd.conf
rm /usr/local/apache2/conf/httpd.conf.new
root@www mod_throttle-3.1.2]# apachectl restart


¡á apache ¼³Á¤ÆÄÀÏ ³»ºÎ¿¡¼­ÀÇ mod_throttle ºÎºÐÀ» ÀνÄ

<IfModule mod_throttle.c>
# Æ®·¡ÇÈÀÌ ÃÊ°úµÇ¸é ³ª¿À´Â ¿¡·¯ÆäÀÌÁö
ErrorDocument 503 http://192.168.1.1/error/error.html
ThrottlePolicy none

<Location /throttle-status>
SetHandler throttle-status
Deny from all
# ´Ù¸¥Á¢±ÙÀ» ¸ðµÎ °ÅºÎÇÏ°í ƯÁ¤ ¾ÆÀÌÇÇ¿¡¼­¸¸ throttle-status ¸¦ È®ÀÎ Çϵµ·Ï ¼³Á¤
# ¿©±â¼­´Â 192.168.1.1 °ú 192.168.1.2 ÀÇ IP ÁÖ¼Ò¸¸ Á¢±ÙÇÒ ¼ö ÀÖ´Ù.
Allow from 192.168.1.1
Allow from 192.168.1.2
</Location>

<Location /throttle-me>
SetHandler throttle-me
</Location>
<Location /~*/throttle-me>
Order deny,allow
Deny from all
Allow from all
SetHandler throttle-me
</Location>
</IfModule>

¡á ¹öÃò¾ó È£½ºÆà ºÎºÐÀÇ °¢ »ç¿ëÀÚ¸¶´Ù °¢°¢ Æ®·¡ÇÈ Á¦¾î

  Æ®·¡ÇÈÀ» °É¶§ÀÇ ¿©·¯°¡Áö ¹æ¹ýÀÌ Á¸ÀçÇÑ´Ù.
  ThrottlePolicy Volume 100M 1d //ÇÏ·ç 100M
  ThrottlePolicy Request 1000 1d //ÇÏ·ç õ¹ø
  ThrottleClientIP 1100 volume 2 10   //·Î±× 1100k 

<VirtualHost 192.168.1.1>
    ServerName test1.com
    DocumentRoot /home/test1/pubic_html
    
    # Àü¼Û·® 1ÀÏ 300M
    ThrottlePolicy Volume 300M 1d  
</VirtualHost>
<VirtualHost 192.168.1.1>
    ServerAdmin webmaster at test2.com
    DocumentRoot /home/test2/public_html
    ServerName  test2.com
    
    # Àü¼Û·® 1ÀÏ 400M
    ThrottlePolicy Volume 400M 1d
</VirtualHost>
<VirtualHost 192.168.1.1>
    ServerAdmin webmaster at test3.org
    DocumentRoot /home/test3/public_html
    ServerName  test3.org
    
    # Àü¼Û·® 1ÀÏ 500M
    ThrottlePolicy Volume 500M 1d
</VirtualHost>

¡á Æ®·¡ÇÈÈ®ÀÎ

1. ù¹ø°¹æ¹ýÀº ÀÚ½ÅÀÇ Æ®·¡Çȸ¸ º¸´Â ¹æ¹ý ( ÀÏ¹Ý »ç¿ëÀÚÀÎ °æ¿ì )

 http://ÀÚ½ÅÀǵµ¸ÞÀÎ/throttle-me

2. µÎ¹ø°¹æ¹ýÀº ¸ðµç °¡»óÈ£½ºÆ®¸¦ º¸´Â ¹æ¹ý ( °ü¸®ÀÚÀÎ °æ¿ì )
( ¡Ø Áß¿ä!!! À̶§´Â ¾Æ¹«³ª Á¢±ÙÇÒ ¼ö ¾øµµ·Ï Á¢±Ù IP ¸·´Â Á¶Ä¡¸¦ ÃëÇØ¾ß ÇÑ´Ù. ±×·¸Áö ¾ÊÀ¸¸é ¸ðµç »ç¿ëÀÚÀÇ
     Á¤º¸¸¦ ´Ù¸¥ »ç¿ëÀÚ°¡ º¼ ¼öµµ ÀÖ°í Æ®·¡ÇÈÀ» ÃʱâÈ­ ÇÒ ¼öµµ ÀÖ´Ù. )

http://ÀÚ½ÅÀǵµ¸ÞÀÎ/throttle-status
* iWiz´Ô¿¡ ÀÇÇؼ­ °Ô½Ã¹° À̵¿µÇ¾ú½À´Ï´Ù (2010-02-03 17:00)



  mod_throttle ¸ðµâÀ» ÀÌ¿ëÇÑ »ç¿ëÀÚ Æ®·¡ÇÈ Á¦¾î  iWiz 2006/06/22 9295 0
61   Tomcat-Apache using JK2 connector  iWiz 2004/03/21 8906 41
60   RedHat 9.0¿¡¼­ÀÇ JRun JSP ÄÄÆÄÀÏ·¯ÀÇ ¹®Á¦Á¡  iWiz 2004/01/04 5723 50
59   RedHat 9.0¿¡¼­ÀÇ JRun-Apache Ä¿³ØÅÍÀÇ ¹®Á¦Á¡  iWiz 2004/01/04 5333 48
58   JRun 4.0ÀÇ Æ©´× °ü·Ã ¿É¼Ç  iWiz 2004/01/04 6132 68
57   JRun 4.0ÀÇ Activity ¸ð´ÏÅ͸µ ¹æ¹ý  iWiz 2004/01/04 5088 57
56   JRun4.0: DataSource Ä¿³Ø¼ÇÇ® °ü·Ã ¿É¼Ç [4]  iWiz 2004/01/04 6837 46
55   JRun¿¡¼­ JSP ÄÄÆÄÀϽà java ÆÄÀÏ »ý¼ºÇÏ±â  iWiz 2004/01/04 9423 63
54   JRunÀÇ ½ÇÁ¦ ¼­ºñ½º ¿î¿µ½Ã °í·Á»çÇ×  iWiz 2004/01/04 7788 44
53   ¼öÁ¤µÈ ÀÎÅÍ³Ý ÀͽºÇ÷η¯¿¡¼­ »óÈ£ÀÛ¿ë ActiveX ÄÁÆ®·Ñ È°¼ºÈ­ °¡ÀÌµå  iWiz 2006/03/03 8669 4
52   HTML Ư¼ö±âÈ£ ¿£ÅÍƼ(Entity) Å×À̺í [2]  iWiz 2006/03/03 22467 2
51   À¥»çÀÌÆ®ÀÇ »õ·Î¿î Çõ¸í Ajax [13]  iWiz 2005/11/22 6045 6
50   MSN ¸Þ½ÅÀú Ä£±¸ ÀÚµ¿µî·Ï ½ºÅ©¸³Æ®  iWiz 2004/10/12 6361 35
49   JavaScript MD5 Çؽ¬ »ý¼º ÇÔ¼ö  iWiz 2004/01/07 9365 35
48   JavaScript·Î ¸¸µç Áø¹ýº¯È¯ ¹× º¸¼ö°è»ê±â [4]  iWiz 2004/01/04 163017 51

1 [2][3][4][5]
 

Copyright 1999-2024 Zeroboard / skin by zero
iWiz ShareBase, ¨ÏCopyleft by iWiz.  For more information contact .
º» À¥»çÀÌÆ®¿¡ °Ô½ÃµÈ À̸ÞÀÏ ÁÖ¼Ò°¡ ÀüÀÚ¿ìÆí ¼öÁý ÇÁ·Î±×·¥À̳ª ±× ¹ÛÀÇ ±â¼úÀû ÀåÄ¡¸¦ ÀÌ¿ëÇÏ¿© ¹«´ÜÀ¸·Î ¼öÁýµÇ´Â °ÍÀ» °ÅºÎÇϸç, À̸¦ À§¹Ý½Ã¿¡´Â Á¤º¸Åë½Å¸Á¹ý¿¡ ÀÇÇØ Çü»çó¹úµÊÀ» À¯³äÇϽñ⠹ٶø´Ï´Ù. [°Ô½ÃÀÏ 2004. 1. 31]