1:#yum -y install perl-GD-Graph* perl-GD  gd* httpd

2: #mkdir -p /var/www/html/squid-graph

3:#tar -zxf squid-graph-3.2.tar.gz -P /opt

4:#/opt/squid-graph/squid-graph -o=/var/www/html/squid-graph/

注意:这上面的目录文件,需要根据实际环境写;access.log 文件是squid默认访问日志文件,默认在squid/var/logs下。

5:#crontab -e

*/5  * * * * /opt/squid-graph/squid-graph -o=/var/www/html/squid-graph/

pp/squid/var/logs/access.log

6:#/etc/init.d/httpd restart

7:在浏览器访问http://192.168.2.3/squid-graph/index.html