SW/APM
웹로그분석 Tool 설치, web log 확인(AWStats)
bigju
2021. 10. 24. 09:00
OS : Centos 7.9
Tool : VMware
1. 설치
cd /usr/local/src
wget http://prdownloads.sourceforge.net/awstats/awstats-6.9.tar.gz //필요한 파일 다운
tar xfz awstats*.tar.gz // 압축풀기
2. AWStats 설치
mv awstats-6.9 /usr/local/awstats
chmod 755 /usr/local/awstats
cd /usr/local/awstats/tools
./awstats_configure.pl
*******-> httpd.conf 경로 (ex: /etc/httpd/conf/httpd.conf
-> y
-> 이름지정 (ex: www.bigju.com)
-> /etc/awstats
-> 엔터
-> 엔터
3. AWStats 설정
cd /etc/awstats
vi /etc/awstats/awstats/(프로필 이름 으로만들어진 파일)
>>
LogFile= 로그파일 위치 설정
>>
언어 설정 (기본값 auto)
한글로 사용 가능 하도록 ko 로 변경
Lang=”ko”
4. 실행
mkdir /var/lib/awstats
/usr/local/awstats/tools/awstats_updateall.pl. now
5. ceontab 설정
매번 업데이트가 귀찮으니 에약 해두자
# ‘*/5 * * * * root /usr/local/awstats/tools/awstats_updateall.pl now’ >> /etc/crontab
6. 접속
http://localhost/awstats/awstats.pl?config=프로필 이름 (ex : www.bigju.com )
BigJu