Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Awstart log analysis

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Awstart log analysis AWStats log analysis system

(1) an open source log analysis system developed by Perl language

(2) it can be used to analyze the access logs of Apache, Samba, Vsftpd, IIS and other servers.

(3) Information combined with crond and other scheduled task services, the log content can be analyzed regularly.

1. Configure the basic Apache website

Install DNS and Apache services

[root@localhost ~] # yum install bind httpd-y1.1, configure DNS service

Configure the master profile

[root@localhost ~] # vim / etc/named.conf

Configure area profile

[root@localhost ~] # vim / etc/named.rfc1912.zoneszone "kgc.com" IN {type master; file "kgc.com.zone"; allow-update {none;};}

Configure area data profile

[root@localhost ~] # cd / var/named/ [root@localhost named] # cp-p named.localhost kgc.com.zone [root@localhost named] # vim kgc.com.zone

Start the DNS service

[root@localhost named] # systemctl start named2, configure Apache service 2.1 enter Apache configuration file configuration [root@localhost named] # vim / etc/httpd/conf/httpd.conf

2.2. Disable the firewall, enable the Apache service [root@localhost named] # systemctl stop firewalld.service [root@localhost named] # setenforce 0 [root@localhost named] # systemctl start httpd3, and open a windows 10 host for testing.

First configure win 10 with a static DNS parsing service

You can see that we can access the web page we just created on the virtual machine

4. Install the Awstar mount shared folder LAMP-C7 [root@localhost httpd] # mkdir / abc [root@localhost httpd] # mount.cifs / / 192.168.100.3/LAMP-C7 / abcPassword for root@//192.168.100.3/LAMP-C7: [root@localhost httpd] #

Install Awstar

[root@localhost abc] # tar zxvf awstats-7.6.tar.gz-C / opt/

Move the installed Awstart to / usr/local/

[root@localhost abc] # cd / opt/ [root@localhost opt] # lsawstats-7.6 rh [root@localhost opt] # mv awstats-7.6/ / usr/local/awstat [root@localhost opt] # cd / usr/local/ [root@localhost local] # lsawstat bin etc games include lib lib64 libexec sbin share src

Configure configure

[root@localhost local] # cd awstat/ [root@localhost awstat] # lsdocs README.md tools wwwroot [root@localhost awstat] # cd tools/ [root@localhost tools] # lsawstats_buildstaticpages.pl dolibarr maillogconvert.pl xsltawstats_configure.pl geoip_generator.pl nginxawstats_exportlib.pl httpd_conf urlaliasbuilder.plawstats_updateall.pl logresolvemerge.pl webmin [root@localhost tools] #. / awstats_configure.pl

View configuration

[root@localhost tools] # cd / etc/httpd/conf [root@localhost conf] # vim httpd.conf

Modify permissions inside to allow installation

Enter the awstart file you just created and configure

[root@localhost conf] # cd / etc/awstats/ [root@localhost awstats] # lsawstats.www.kgc.com.conf [root@localhost awstats] # vim awstats.www.kgc.com.conf

[root@localhost awstats] # cd / var/lib/ enter / var/lib/ directory [root@localhost lib] # mkdir awstats / / create awstats file [root@localhost lib] # systemctl restart httpd / / restart httpd service 5, return win 10 for testing

Open a browser in win10 to search for http://www.kgc.com/awstats/awstats.pl?config=www.kgc.com to view

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report