1、搭建LNMP环境
http://blog.csdn.net/yang_xu_1987/article/details/77292340
#下面是按照源码搭建LNMP的方式,主要是路径不一样
2、安装rrd-tool、snmp相关包
yum install -y rrdtool net-snmp net-snmp-utils
3、安装cacti
下载cacti:http://download.csdn.net/download/yang_xu_1987/9961433
tar -zxvf cacti-0.8.7i.tar.gz -C /usr/local/nginx/html (nginx目录)
cd /usr/local/nginx/html
配置文件 cacti-0.8.7i/include/config.php
进入mysql
mysql> create database cacti;
mysql> grant all on cacti.* to 'cactiuser'@'localhost' identified by 'cactiuser';
mysql> flush privileges;
mysql> exit
mv cacti-0.8.7i/ cacti
useradd cacti
chown -R root:root /usr/