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. 사용자 인증

    Date2009.11.26 ByADMINPLAY Views14017
    Read More
  2. squid 로 웹서버 가속하기..---== 강추 ==---

    Date2009.11.26 ByADMINPLAY Views18254
    Read More
  3. 아파치 데몬이 안 뜰경우

    Date2009.11.26 ByADMINPLAY Views14874
    Read More
  4. apache2 worker 방식 client 수치 설정법

    Date2009.11.26 ByADMINPLAY Views16069
    Read More
  5. rewrite 모듈을 이욜한 서브도메인으로 홈페이지 운영하기

    Date2009.11.26 ByADMINPLAY Views14217
    Read More
  6. apache log에 그림이미지 파일 로그 안남기기

    Date2009.11.26 ByADMINPLAY Views14666
    Read More
  7. SSL 인증서 발급 후 SSL mode 시작시 두 개의 패스워드 입...

    Date2009.10.15 ByADMINPLAY Views14176
    Read More
  8. 브라우저 접속 제한하기

    Date2009.09.30 ByADMINPLAY Views14691
    Read More
  9. 아파치 컴파일 에러(apr-util) configure: error: cannet ...

    Date2009.08.08 ByADMINPLAY Views19574
    Read More
  10. APM 기본설치후 아파치 실행에러 httpd: Could not determ...

    Date2009.08.08 ByADMINPLAY Views21875
    Read More
  11. Apache Make시 /usr/lib/libexpat.so: could not read sym...

    Date2009.08.07 ByADMINPLAY Views17943
    Read More
  12. make[2]: *** [htpasswd] 오류 1 , make[1]: *** [all-rec...

    Date2009.08.07 ByADMINPLAY Views27101
    Read More
  13. Unclean shutdown of previous Apache run?

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

    Date2009.07.18 ByADMINPLAY Views14217
    Read More
  15. 매일 자정에 트래픽 초기화 하기

    Date2009.07.18 ByADMINPLAY Views15668
    Read More
  16. Apache 웹서버 MaxClient 최대값 조정을 위한 C & CPP 플...

    Date2009.06.21 ByADMINPLAY Views13815
    Read More
  17. Tomcat 4 과 Apache 2 연동

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

    Date2009.05.10 ByADMINPLAY Views13767
    Read More
  19. [LINUX] Apache 2.2 + mod jk 1.2 + Tomcat 5.x 연동

    Date2009.05.07 ByADMINPLAY Views21037
    Read More
  20. Apache의 Indexes된 페이지에서 한글표시

    Date2009.05.07 ByADMINPLAY Views16291
    Read More
Board Pagination Prev 1 2 3 4 5 Next
/ 5

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234