If we can not install cacti with yum, we can use the TAR package to install!!!
//configuration preparation for the cacti[email protected] ~]# Yum install-y epel-release [[email protected]~]# yum install-y httpd php php-mysql mysql mysql-server mysql-devel php-gd libjpeg libjpeg-devel libpng libpng-devel a[[email protected]~]# Yum install-y net-snmp net-snmp-utils Rrdtool[[email protected]~]#/etc/init.d/mysqld Start[[email protected]~]#/etc/init.d/httpd start[[email protected]~]#/etc/init.d/snmpd Start//install cacti and configure[Email protected] ~]# cd/usr/local/Src[[email protected] src]# wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz[Email protected] src]# TAR-ZXVF cacti-0.8. 7e.tar.gz[[email protected] src]# mv cacti-0.87e/var/www/html/Cacti//Create a cacti database[email protected] src]# MySQL-Uroot......mysql>CREATE DATABASE Cacti;mysql>grant all on cacti.* to'Cacti'@'localhost'identified by ' cacti '; MySQL>Flush Privileges;mysql>Exitbye//Import Cacti.sql[Email protected] src]# mysql-u root cacti </var/www/html/cacti/Cacti.sql//Modifying a configuration file[[Email protected] src]# CD/var/www/html[[email protected] html]# vim cacti/include/config.php// Change$database _type ="MySQL"; $database _default="cacti"; $database _name="Cacti"; $database _hostname=127.0.0.1" ;$database _username ="cacti"; $database _password="cacti"; $database _port=3306″;//change the genus Group[email protected] html]# useradd cacti[[email protected] html]# chgrp-R cacti/var/www/html/Cacti[[email protected] html]# chown-R cacti/var/www/html/cacti/Rra[[email protected] html]# chown-R cacti/var/www/html/cacti/Log[[email protected] html]# chown-R cacti/var/www/html/cacti/poller.php//Web Installation cactihttp://Ip/cacti(If it appears "403Forbidden "error, please turn SELinux off) point two under" Next "and once" Finish "can enter admin admin login, reset new password
// make cacti generate a chart [Email protected] html]#/usr/bin/php/var/www/html/cacti/-//ADD*/ 5 * * * */usr/bin/php/var/www/html/cacti/poller.php// The remaining steps are consistent with the previous cacti configuration, can go to view
Cacti (can not use Yum to install cacti configuration)