Install Cacti on CentOS 5 with yum
Installation[*]Download CentOS 5 from www.centos.org
[*]Install CentOS5
[*]Install Core Development Tools Automake, Gcc (C/C++), Perl, Python &
Debuggers
[*]yum groupinstall 'Development Tools'
[*]install Priorities:
[*]yum install yum-priorities
[*]install RPMforge:
[*]cd /usr/local/src
[*]wget
http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
[*]rmp -i rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
[*]install mysql
[*]yum -y install mysql-server
[*]install Cacti
[*]yum -y install cacti
[*]start services
[*]service mysqld start
[*]service snmpd start
[*]service httpd start
[*]Install cacti database
[*]mysqladmin -u root -p create cacti
[*]mysql -u root -p -A cacti < /var/www/cacti/cacti.sql
[*]mysql -u root -p -A mysql
[*]mysql> grant all privileges on cacti.* to cactiuser@localhost identified
by 'cactiuser';
[*]mysql> flush privileges;
[*]mysql> exit
[*]Modify cacti.conf
[*]vi /etc/httpd/conf.d/cacti.conf
[*]Change the order and allow as below.
[*]order allow,deny
[*]allow from all
[*]Open http://server/cacti
[*]Install cacti as winzard and enjoy it.
FAQ
[*]If the yum can not run, becaue the yum update run at start, you can kill the
process
rm -f /var/run/yum.pid
页:
[1]