Cacti (can not use Yum to install cacti configuration)

Source: Internet
Author: User
Tags snmp

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)

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.