Install cacti with lamp (1)

Source: Internet
Author: User

Installing cacti with lamp is still relatively simple. Learn it quickly!

Steps:

1. Install net-snmp

 
 
  1. yum install net-snmp*  
  2.  

Note that you need to add * to install all the doon; otherwise, there is no command required by cacti.

2. install php-snmp

 
 
  1. yum install php-snmp  
  2.  

3. Install rrdtool

 
 
  1. wget [url]ftp://ftp.pbone.net/mirror/atrpms.net/el4-i386/atrpms/stable/rrdtool-1.0.50-25.el4.at.i386.rpm[/url]  
  2.  
  3. rpm -ivh rrdtool-1.0.50-25.el4.at.i386.rpm  
  4.  

4. Install cacti

 
 
  1. wget [url]http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz[/url]  
  2.  

Decompress the tar.gz file.

 
 
  1. tar -zxvf cacti-0.8.7e.tar.gz  
  2.  

Move the decompressed folder to your/opt/lampp/htdocs directory.

 
 
  1. mv cacti-0.8.7e /opt/lampp/htdocs/cacti  
  2.  

Then configure the Cacti Database

 
 
  1. #/opt/lampp/bin/mysqladmin -u root -p123456 create cacti  
  2.  

Now we must insert the cacti table in the Cacti database:

 
 
  1. #/opt/lampp/bin/mysql -u root -p123456 cacti < /opt/lampp/htdocs/cacti/cacti.sql  
  2.  

Log on to the database

 
 
  1. #/opt/lampp/bin/mysql -u root -p123456  
  2.  

We grant cactiuser all permissions on the cacti database:

 
 
  1. mysql> grant all on cacti.* to cactiuser@localhost identified by 'cactiuser';  
  2.  


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.