安装AWstats分析http日志信息.vim
[root@client ~]# yum -y install awstats服务器
自动生成相关配置文件awstats.(hostname).conf ide
[root@client ~]# vim /etc/awstats/awstats.server.example.com.conf网站
# line 122: 修改ui
# 若是你的httpd.conf配置文件中的日志类型是 'combined' 就设置为 '1'云计算
# 若是是 'common' set here '4'。spa
LogFormat=1rest
# line 153: 指定你的主机名日志
SiteDomain="server.example.com"orm
# line 168: 主机别名:
HostAliases="localhost 127.0.0.1 REGEX[server\.world$] REGEX[^10\.0\.0\.]"
[root@client ~]# vi /etc/httpd/conf.d/awstats.conf
# line 30: 容许访问的IP地址
Require ip 192.168.96.0/24
[root@client ~]# systemctl restart httpd
# 生成报告 ( 报告会被计划任务每间隔一个小时更新一次 )
[root@client ~]# /usr/share/awstats/wwwroot/cgi-bin/awstats.pl -config=server.example.com -update