[root@localhost]# wget http://pkg.tini4u.net/http/3rd-party/mod_throttle.tar.gz [root@localhost]# tar xfz mod_throttle.tar.gz |
[root@localhost]# cd apache-1.3.37 [root@localhost]# ./configure --add-module=../mod_throttle/mod_throttle.c |
[root@localhost]# cd mod_throttle [root@localhost]# make install |
[root@localhost]# /usr/sbin/apxs -aic mod_throttle.c |
|
|
|
이름: ThrottleClientIP 설명: 접속한 IP를 설정해주면 됩니다. 문법: ThrottleClientIP [보여줄 IP수] [정책] [제한] [기간] |
이름: ThrottleContentType 설명: 통계를 출력할 형태를 지정하면 되며, text/html, text/plain 중에 하나를 넣으면 됩니다. 문법: ThrottleContentType [문자열] |
이름: ThrottleIndicator 설명: 결과에 따른 컬러를 조정할 수 있는 퍼센테이지와 컬러를 지정합니다. 문법: ThrottleIndicator [컬러] [NN%] 예제: ThrottleIndicator green 60 ThrottleIndicator yellow 80 ThrottleIndicator red 90 |
이름: ThrottleLockFile 이름: ThrottleRuntimeFile 설명: throttle에서 사용하는 파일을 강제로 지정해줄 수 있습니다. 문법: ThrottleLockFile [파일명] 문법: ThrottleRuntimeFile [파일명] |
이름: ThrottleMaxDelay 설명: throttle의 최대 Delay 시간을 정합니다. 기본은 60초이며, 0은 제한하지 않겠다는 뜻입니다. 문법: ThrottleMaxDelay [N/sec] 예제: ThrottleMaxDelay 60 |
이름: ThrottlePolicy 설명: 일반적으로 정책은 Volume과 Request를 사용합니다. 문법: ThrottlePolicy [정책] [제한] [기간] 예제: ThrottlePolicy Volume 100M 1d |
이름: ThrottleRefresh 설명: throttle 통계화면의 리로드 시간을 정합니다. 문법: ThrottleRefresh [N/sec] 예제: ThrottleRefresh 60 |
이름: ThrottleRemoteUser 설명: 접속자당 제한을 하는 지시자 입니다. 문법: ThrottleRemoteUser [크기] [정책] [제한] [기간] |
이름: ThrottleUser 설명: 로컬 사용자 제한을 등록합니다. 분산된 호스트를 관리할 때 사용합니다. 문법: ThrottleUser [사용자] [정책] [제한] [기간] |
|
SSISO Community