心 涯

NET&JAVA&PHP(要跨界,你不只要跨「脑」的界限,更要跨越「心」的界限,不怕改变,不怕再学习!)

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

一、软件包

a) cacti-0.8.7g.tar.gz

b) net-snmp-5.2.6.tar.gz

c) rrdtool-1.4.5.tar.gz

二、安装步骤

a) 首先安装配置好LAMP环境

b) Tar zxvf rrdtool-1.4.5.tar.gz

c) ./configure --prefix=/usr/local/rrdtool --disable-tcl

d) ln -s /usr/local/rrdtool/bin/* /usr/local/bin/

e) 执行rrdtool看是否安装正确

f) Tar zxvf net-snmp-5.2.6.tar.gz

g) ./configure --prefix=/usr/local/net-snmp --enable-developer

h) ln -s /usr/local/net-snmp/bin/* /usr/local/bin

i) cp EXAMPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf

j) /usr/local/net-snmp/sbin/snmpd //启动snmpd

k) Tar zxvf cacti-0.8.7g.tar.gz

l) Mv cacti-0.8.7g /usr/local/apache/htdocs/cacti

m) vi /usr/local/apache/htdocs/cacti/include/config.php

n) vi /usr/local/apache/htdocs/cacti/include/global.php

$database_type = "mysql";

$database_default = "cacti";

$database_hostname = "localhost";

$database_username = "cacti";

$database_password = "cacti";

o) useradd cacti

p) groupadd cacti

q) chown –R cacti:cacti /usr/local/apache/htdocs/cacti/rra

r) chown –R cacti:cacti /usr/local/apache/htdocs/cacti

s) /usr/local/mysql/bin/mysql –uroot –p

t) Mysql>create database cacti;

u) Mysql> grant all on cacti.* to cacti@localhost identified by “cacti”;

v) Mysql>flush privileges;

w) Cd /usr/local/apache/htdocs/cacti

x) /usr/local/mysql/bin/mysql –uroot –p cacti >cacti.sql;

y) 访问http://localhost/cacti默认用户名admin.密码admin

clip_image002

posted on 2011-03-18 19:01  witer666  阅读(320)  评论(0编辑  收藏  举报