安裝方式如下
# yum -y install mailgraph
# vi /etc/httpd/conf.d/mailgraph.conf
Alias /mailgraph /usr/share/mailgraph
AddHandler cgi-script .cgi
AllowOverride None
Options +ExecCGI
DirectoryIndex mailgraph.cgi
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 192.168.1.0/24 #加入要允許的IP
存檔後啟動mailgraph服務與restart httpd service
# /etc/rc.d/init.d/mailgraph start
# /etc/rc.d/init.d/httpd restart
將服務加入開機自動執行的Service
# chkconfig mailgraph on
再輸入網址即可看到相關的圖表
沒有留言:
張貼留言