CentOS 6.5 웹로그 모니터링 awstats 설치하기 :: JSP 일반[SSISO Community]
 
SSISO 카페 SSISO Source SSISO 구직 SSISO 쇼핑몰 SSISO 맛집
추천검색어 : JUnit   Log4j   ajax   spring   struts   struts-config.xml   Synchronized   책정보   Ajax 마스터하기   우측부분

JSP 일반
[1]
등록일:2015-06-14 08:40:18 (0%)
작성자:
제목:CentOS 6.5 웹로그 모니터링 awstats 설치하기
1. awstats 설치

# yum install awstats
* 패키지가 없을경우 epel repo 를 추가합니다.

2. conf 파일 수정하기

# vi /etc/awstats/awstats.세팅할도메인주소.conf
Lang="ko"
LogFile="/var/log/httpd/access_log" // 로그파일 주소가 다를경우 거기에 맞게 수정

3. crontab 에 스케쥴러 추가

# crontab -e
*/5     *       *       *       *       /usr/share/awstats/tools/awstats_updateall.pl now -confdir="/etc" -awstatsprog="/var/www/awstats/awstats.pl"

4. 아이피의 국가별 구문을 위해 geoip 설정

# yum install geoip perl-Geo-IP
# mkdir /usr/local/geo
# cd /usr/local/geo
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
# wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
# gzip -d GeoIP.dat.gz
# gzip -d GeoLiteCity.dat.gz
# vi /etc/awstats/awstats.도메인.conf

LoadPlugin="geoip GEOIP_STANDARD /usr/share/GeoIP/GeoIP.dat"
LoadPlugin="geoip_city_maxmind GEOIP_STANDARD /usr/local/geo/GeoIPCity.dat"

/usr/share/awstats/tools/awstats_updateall.pl now -confdir="/etc" -awstatsprog="/var/www/awstats/awstats.pl"

5. 아파치 설정파일 수정

# vi /etc/httpd/conf.d/awstats.conf
Allow from 127.0.0.1 을 Allow from All 로 수정

6. 접속

http://도메인/awstats/awstats.pl
[본문링크] CentOS 6.5 웹로그 모니터링 awstats 설치하기
[1]
코멘트(이글의 트랙백 주소:/cafe/tb_receive.php?no=34468
작성자
비밀번호

 

SSISOCommunity

[이전]

Copyright byCopyright ⓒ2005, SSISO Community All Rights Reserved.