文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>Redhat Cacti安装配置

Redhat Cacti安装配置

时间:2011-03-18  来源:witer666

一、软件包

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

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载