cacti安装配置

安装前需配置lamp/lnmp环境
Rrdtool安装
Rrdtool安装需要cairo、libxml2、pango库文件支持,所以我们先使用yum安装这几个库文件
#yum install cairo-devel libxml2-devel pangopango-devel
#tar zxvf rrdtool-1.4.4.tar.gz
#cd rrdtool-1.4.4
#./configure --prefix=/usr/local/rrdtool
#make && make install
#ln -s /usr/local/rrdtool/bin/* /usr/local/bin/

 

net-snmp安装
#tar zxvf net-snmp-5.4.3.tar.gz
#cd net-snmp-5.4.3
#./configure --prefix=/usr/local/net-snmp
#make && make install
#cp EXAMPLE.conf /usr/local/net-snmp/share/snmp/snmpd.conf
#ln -s /usr/local/net-snmp/bin/* /usr/local/bin/
#/usr/local/net-snmp/sbin/snmpd -c /usr/local/net-snmp/share/snmp/snmpd.conf//启动net-snmp
#echo“/usr/local/net-snmp/sbin/snmpd-c/usr/local/net-snmp/share/snmp/snmpd.conf”>>/etc/rc.local//加入开机启动

centos直接采用yum方式安装即可
yum –y install net-snmp net-snmp-utils
snmp的相关程序包
php-snmp-5.1.6-27.el5_5.3
net-snmp-libs-5.3.2.2-9.el5_5.1
net-snmp-utils-5.3.2.2-9.el5_5.1
net-snmp-5.3.2.2-9.el5_5.1
net-snmp-devel-5.3.2.2-9.el5_5.1

cacti安装配置
登录mysql服务器作出如下配置
mysql> create database cacti;
mysql> use cacti
mysql> grant all privileges on cacti.* to 'cacti'@'192.168.1.5' identified by 'cacti';
mysql> flush privileges;
mysql> source /tmp/cacti.sql  (此文件放置于cacti解压目录下/usr/local/nginx/html/cacti-0.8.7d)

注:本环境mysql在独立的环境,若都集中一台可根据现实条件进行配置
cact配置
# vi /usr/local/webserver/include/config.php
2011年08月16日 - herb - herb

解压cacti  cp至web主站目录(此处web路径为/usr/local/webserver)
 tar -zxvf cacti-0.8.7d.tar.gz
 cp /usr/local/nginx/html/cacti-0.8.7d /usr/local/webserver/

cacti安装
http://localhost/install/

cacti安装配置 - herb - herb
 

 

cacti安装配置 - herb - herb
默认user/passwd :admin/admin

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值