加入收藏 | 设为首页 | 会员中心 | 我要投稿 济南站长网 (https://www.0531zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Linux > 正文

centos 环境下cacti安装部署

发布时间:2016-09-07 14:48:35 所属栏目:Linux 来源:站长网
导读:Cacti 研究了有段时间了,中间遇到点问题,最终还是搭建起来了.这里记下自己安装的过程,以免以后忘记还要重新查看资料。同时也提供给感兴趣的朋友! 一.Cacti

4.安装RRDtools http://oss.oetiker.ch/rrdtool/

RRDtools 同样需要很多库文件的支持,只需要在安装操作系统的时候将开发软件包都装上就可以了。

tar zxf rrdtool-1.4.4.tar.gz

cd rrdtool-1.4.4

./configure --prefix=/uar/local/rrdtool --disable-tcl

make && make install

//完成后建立符号连接

ln –s /usr/local/rrdtool/bin/* /usr/local/bin/

5.安装net-snmp

建议 yum install net-snmp

vim /etc/snmp/snmpd.conf

修改如下内容:

#com2sec notConfigUser  default       public

修改为:

com2sec notConfigUser  127.0.0.1       public(同时去掉#)

#access  notConfigGroup ""      any       noauth    exact  systemview none none

修改为:

access  notConfigGroup ""      any       noauth    exact  all  none none

#view all    included  .1 这一行去掉注释#

service snmpd start

OK!

查看本栏目更多精彩内容:http://www.bianceng.cn/OS/Linux/

6.安装cacti

useradd cacti

tar zxvf  cacti-0.8.7i.tar.gz

cp -ra cacti-0.87i /usr/local/apache2/htdocs/cacti

chown -R cacti.cacti /usr/loca/apache2/htdocs/cacti

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

修改如下:

centos 环境下cacti安装部署

 7.数据库配置

 mysql -u root

create database cacti;

grant all on cacti.* to cacti@localhost identified by "cacti";

flush priviledges;

exit;

mysqladmin -u root password("mysql")

mysql -uroot -pmysql cacti < /usr/local/apache/htdocs/cacti/cacti.sql

Chmod 777 /usr/local/apache/htdocs/cacti/log

Chmod 777 /usr/local/apache/htdocs/cacti/rra

(编辑:济南站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读