(1)Perl语言开发的一款开源日志分析系统
(2)可用来分析Apache、Samba、Vsftpd、IIS等服务器的访问日志
(3)信息结合crond等计划任务服务,可对日志内容按期进行分析nginx
安装DNS和Apache服务web
[root@localhost ~]# yum install bind httpd -y
配置主配置文件vim
[root@localhost ~]# vim /etc/named.conf
配置区域配置文件windows
[root@localhost ~]# vim /etc/named.rfc1912.zones zone "kgc.com" IN { type master; file "kgc.com.zone"; allow-update { none; }; };
配置区域数据配置文件浏览器
[root@localhost ~]# cd /var/named/ [root@localhost named]# cp -p named.localhost kgc.com.zone [root@localhost named]# vim kgc.com.zone
启动DNS服务服务器
[root@localhost named]# systemctl start named
[root@localhost named]# vim /etc/httpd/conf/httpd.conf
[root@localhost named]# systemctl stop firewalld.service [root@localhost named]# setenforce 0 [root@localhost named]# systemctl start httpd
首先给win 10 配置静态的DNS解析服务
能够看到咱们能够访问刚才在虚拟机上建立的网页ide
[root@localhost httpd]# mkdir /abc [root@localhost httpd]# mount.cifs //192.168.100.3/LAMP-C7 /abc Password for root@//192.168.100.3/LAMP-C7: [root@localhost httpd]#
安装Awstar测试
[root@localhost abc]# tar zxvf awstats-7.6.tar.gz -C /opt/
将安装的Awstart移动到/usr/local/下网站
[root@localhost abc]# cd /opt/ [root@localhost opt]# ls awstats-7.6 rh [root@localhost opt]# mv awstats-7.6/ /usr/local/awstat [root@localhost opt]# cd /usr/local/ [root@localhost local]# ls awstat bin etc games include lib lib64 libexec sbin share src
配置configureui
[root@localhost local]# cd awstat/ [root@localhost awstat]# ls docs README.md tools wwwroot [root@localhost awstat]# cd tools/ [root@localhost tools]# ls awstats_buildstaticpages.pl dolibarr maillogconvert.pl xslt awstats_configure.pl geoip_generator.pl nginx awstats_exportlib.pl httpd_conf urlaliasbuilder.pl awstats_updateall.pl logresolvemerge.pl webmin [root@localhost tools]# ./awstats_configure.pl
查看配置
[root@localhost tools]# cd /etc/httpd/conf [root@localhost conf]# vim httpd.conf
在里边修改权限,容许安装
进入刚才建立好的awstart文件,配置
[root@localhost conf]# cd /etc/awstats/ [root@localhost awstats]# ls awstats.www.kgc.com.conf [root@localhost awstats]# vim awstats.www.kgc.com.conf
[root@localhost awstats]# cd /var/lib/ //进入/var/lib/目录 [root@localhost lib]# mkdir awstats //建立awstats文件 [root@localhost lib]# systemctl restart httpd //重启httpd服务
在win10 打开浏览器搜索http://www.kgc.com/awstats/awstats.pl?config=www.kgc.com查看