Skip to content

조회 수 15668 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
아래의 팁&테크중 mod_throttle를 사용하여 도메인별 트래픽 관리하는 팁이 있습니다.
그 내용중 일간 트래픽 관리시에 트래픽이 누적되지 않도록 하루에 한번
트래픽을 초기화하여야 합니다.
이 작업을 매일 오후 11시 58분에 자동으로 초기화 하도록 설정하겠습니다.

여기서는 lynx라는 간단한 텍스트 웹브라우저를 사용하여서 웹서버로 접근합니다.
예) lynx #source http://도메인

트래픽을 초기화 하기위한 URL을 먼저 확인합니다.
http://서버도메인/throttle-status?content-type=text/html&refresh=60&view=status&command=reset,*
위의 URL을 웹브라우저로 접근합니다.

]$ lynx #source http://서버도메인/throttle-status?content-type=text/html&refresh=60&view=status&command=reset,*

모든 도메인의 트래픽이 초기화 되었는지 확인하실 수 있습니다.

그러나 만약 트래픽 관리자 모드에 인증을 걸었다면 다음의 옵션을 추가해서 실행해야 합니다.
아이디는 admin 비밀번호는 ResetAll 이라고 가정합니다.

]# vi /etc/traffic_reset.sh
######################################
#!/bin/bash


/usr/bin/lynx #source -auth=admin:ResetAll \
"http://도메인/throttle-status?content-type=text/html&refresh=60&view=status&command=reset,*"
######################################

소유권 변경
]# chown root:root /etc/traffic_reset.sh

퍼미션 변경
]# chmod 700 /etc/traffic_reset.sh

/etc/crontab에 등록
]# vi /etc/crontab
######################################
58 23 * * * root /etc/traffic_reset.sh >/dev/null
######################################

이제 매일 저녁 23시 58분에 자동으로 전체 트래픽을 초기화 합니다.

  1. Apache 1.3.12 httpd.conf 파일 한글설명

    Date2009.03.04 ByADMINPLAY Views13361
    Read More
  2. 웹 사이트 속도측정

    Date2009.03.04 ByADMINPLAY Views16462
    Read More
  3. 아파치에서 한글 파일 읽기 [mod_url 설치]

    Date2009.03.17 ByADMINPLAY Views17297
    Read More
  4. 초간단 웹 페이지 로딩시간 체크법

    Date2009.03.17 ByADMINPLAY Views15350
    Read More
  5. 아파치웹서버 모니터링하기

    Date2009.03.17 ByADMINPLAY Views16476
    Read More
  6. xcache 설치 (xcache-1.2.2.tar.gz)

    Date2009.03.17 ByADMINPLAY Views18362
    Read More
  7. 아파치 웹서버 사용 시 무단 링크 방지법

    Date2009.04.03 ByADMINPLAY Views15592
    Read More
  8. expires설정으로 브라우저캐시

    Date2009.04.18 ByADMINPLAY Views14662
    Read More
  9. Apache의 Indexes된 페이지에서 한글표시

    Date2009.05.07 ByADMINPLAY Views16291
    Read More
  10. [LINUX] Apache 2.2 + mod jk 1.2 + Tomcat 5.x 연동

    Date2009.05.07 ByADMINPLAY Views21037
    Read More
  11. [자료] 웹사이트 성능개선 위한 커널 튜닝 사례

    Date2009.05.10 ByADMINPLAY Views13767
    Read More
  12. Tomcat 4 과 Apache 2 연동

    Date2009.06.06 ByADMINPLAY Views14617
    Read More
  13. Apache 웹서버 MaxClient 최대값 조정을 위한 C & CPP 플...

    Date2009.06.21 ByADMINPLAY Views13815
    Read More
  14. 매일 자정에 트래픽 초기화 하기

    Date2009.07.18 ByADMINPLAY Views15668
    Read More
  15. apache 에서 euc-kr홈페이지를 포팅할때 화면이안나올경우

    Date2009.07.18 ByADMINPLAY Views14217
    Read More
  16. Unclean shutdown of previous Apache run?

    Date2009.08.05 ByADMINPLAY Views21795
    Read More
  17. make[2]: *** [htpasswd] 오류 1 , make[1]: *** [all-rec...

    Date2009.08.07 ByADMINPLAY Views27109
    Read More
  18. Apache Make시 /usr/lib/libexpat.so: could not read sym...

    Date2009.08.07 ByADMINPLAY Views17943
    Read More
  19. APM 기본설치후 아파치 실행에러 httpd: Could not determ...

    Date2009.08.08 ByADMINPLAY Views21875
    Read More
  20. 아파치 컴파일 에러(apr-util) configure: error: cannet ...

    Date2009.08.08 ByADMINPLAY Views19574
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234