(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查看