문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
database:mysql:anemometer [2013/03/20 16:38] kwon37xi |
database:mysql:anemometer [2013/04/04 13:25] kwon37xi [설치 주의점] |
||
---|---|---|---|
줄 5: | 줄 5: | ||
===== 설치 주의점 ===== | ===== 설치 주의점 ===== | ||
+ | * [[https:// | ||
* '' | * '' | ||
* ''/ | * ''/ | ||
+ | ===== 로그 분석해서 DB에 넣기 ===== | ||
+ | * [[http:// | ||
+ | * 기본적인 쿼리 분석해서 DB 넣기 스크립트< | ||
+ | pt-query-digest --user=anemometer --password=superSecurePass \ | ||
+ | --review h=db.example.com, | ||
+ | --history h=db.example.com, | ||
+ | --no-report --limit=0% \ | ||
+ | --filter=" | ||
+ | / | ||
+ | </ | ||
+ | * '' | ||
+ | * 분석 결과 DB 관련 정보는 자신이 설정한대로 바꿔 넣는다. | ||
+ | * pt-query-digest 구 버전에서는 '' | ||
+ | ===== nginx에 설치 ===== | ||
+ | * '' | ||
+ | * nginx와 php-fpm을 패키지로 설치하면 ''/ | ||
+ | * 잘 안될경우 [[nginx: | ||
+ | * '' | ||
+ | * ''/ | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name example.com; | ||
+ | | ||
+ | location /anemometer { | ||
+ | root / | ||
+ | index index.html index.htm; | ||
+ | } | ||
+ | |||
+ | # *.php 파일만 php-fpm 이 처리한다. | ||
+ | | ||
+ | root / | ||
+ | index index.html index.htm; | ||
+ | |||
+ | fastcgi_split_path_info ^(.+\.php)(/ | ||
+ | fastcgi_pass 127.0.0.1: | ||
+ | fastcgi_index index.php; | ||
+ | include fastcgi_params; | ||
+ | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
+ | fastcgi_param SCRIPT_NAME $fastcgi_script_name; | ||
+ | } | ||
+ | } | ||
+ | </ |