首页 > Open Source > cacti+spine+其他常用plugins的整合安装

cacti+spine+其他常用plugins的整合安装

2011年8月20日 发表评论 阅读评论
adduser cacti
cd /tmp
wget http://www.cacti.net/downloads/cacti-0.8.7g.tar.gz
wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.7g.tar.gz
wget http://mirror.cactiusers.org/downloads/plugins/cacti-plugin-0.8.7g-PA-v2.8.tar.gz
wget http://www.cacti.net/downloads/spine/patches/0.8.7g/unified_issues.patch
cd /opt
tar xzvf /tmp/cacti-0.8.7g.tar.gz
ln -s cacti-0.8.7g cacti
cd cacti
chown -R cacti rra/ log/
mysql

进入mysql交互式模式

create database cacti;
grant all on cacti.* to cactiuser@localhost identified by 'cactipasswd';
flush privileges;
exit;
mysql cacti /dev/null 2>&1" >> /etc/crontab
echo "Alias \"/cacti\" \"/opt/cacti\"" > /etc/httpd/conf.d/cacti.conf
vim include/config.php

修改文件include/config.php的下面几行如下所示:

$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cactipasswd";
service httpd restart

好啦,cacti设置完了,打开浏览器,输入http://xx.xx.xx.xx/cacti(“xx.xx.xx.xx”是服务器ip)
再一步步走安装,仅需2步吧,就完成安装了,再用admin/admin登录进去,修改密码,就可以用了。
下面再装spine:

分类: Open Source 标签:
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.