Install Cacti on CentOS 6.8

Опубликовано: 04 Август 2026
на канале: CMV - Network Solutions
1,384
3

The command order when install CentOS:
THE PREREQUISITES:

yum install httpd httpd-devel -y
yum install mysql mysql-server -y
yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli php-mysql -y
yum install php-snmp -y
yum install net-snmp-utils p net-snmp-libs php-pear-Net-SMTP -y
yum install rrdtool -y
service httpd start
service mysqld start
service snmpd start
chkconfig httpd on
chkconfig mysqld on
chkconfig snmpd on
wget http://download.fedoraproject.org/pub...
rpm -ivh epel-release-6-8.noarch.rpm
yum install cacti -y

DATABASE

mysqladmin -u root password 123456
mysql -u root -p
create database cacti;
grant all on cacti.* to cacti@localhost identified by '123456';
flush privileges;
exit


rpm -ql cacti | grep cacti.sql
/usr/share/doc/cacti-0.8.8h/cacti.sql
mysql -u cacti -p cacti /usr/share/doc/cacti-0.8.8h/cacti.sql
vi /etc/cacti/db.php
vi /etc/httpd/conf.d/cacti.conf
service httpd restart
vi /etc/cron.d/cacti

and Enjoy!
Sorry for the audio :( because my microphone is failure when I am recording this.

by Đình Việt Thắng