Install Cacti on CentOS 5 with yum

Installation

  1. Download CentOS 5 from www.centos.org
  2. Install CentOS5
  3. Install Core Development Tools Automake, Gcc (C/C++), Perl, Python & Debuggers
    • yum groupinstall 'Development Tools'
  4. install Priorities:
    • yum install yum-priorities
  5. 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
  6. install mysql
    • yum -y install mysql-server
  7. install Cacti
    • yum -y install cacti
  8. start services
    • service mysqld start
    • service snmpd start
    • service httpd start
  9. 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
  10. Modify cacti.conf
    • vi /etc/httpd/conf.d/cacti.conf
    • Change the order and allow as below.
      • order allow,deny
      • allow from all
  11. Open http://server/cacti
  12. 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
posted @ 2010-03-05 23:00  kevinzx  阅读(852)  评论(0编辑  收藏  举报