部署snmp:yum -y install net-snmp net-snmp-utils
(service snmpd start 部署后的启动)
部署php和数据库:yum -y install httpd mysql mysql-server mysql-devel php php-mysql
(service httpd start 部署后的启动)
(service mysqld start 部署后的启动)
部署rrd(轮询数据):yum -y install rrdtool
安装cacti
#tar xf cacti-0.8.7g.tar.gz -C /var/www/html/
5.创建数据库
# mysql
mysql> create database cacti;
mysql> grant all on cacti.* to ‘cactiuser‘@‘localhost‘ identified by ‘123456‘;
mysql> flush privileges;
mysql> exit
6.进行授权
# chown -R root:root /var/www/html/cacti/
# useradd cacti
# chown -R cacti:cacti /var/www/html/cacti/log/
# chown -R cacti:cacti /var/www/html/cacti/rra/
7.在浏览器输入http://IP/cacti/install/,进入cacti安装向导 (这里的端口默认是80,可以在vim /etc/httpd/conf/httpd.conf里面修改端口)
8.相关配置待续
本文出自 “安雅个人技术博客” 博客,请务必保留此出处http://zhouanya.blog.51cto.com/4944792/1912057
原文地址:http://zhouanya.blog.51cto.com/4944792/1912057