cacti (不可以利用yum安装cacti的配置)

我们如果用yum不可以安装cacti,我们则可以利用tar包来安装!!!

//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

//安装cacti并配置
[[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

//创建cacti数据库
[[email protected] src]# mysql -uroot
...
...
mysql>create database cacti;
mysql>grant all on cacti.* to ‘cacti‘@‘localhost‘ identified by ‘cacti’;
mysql>flush privileges;
mysql> exit
Bye

//导入cacti.sql
[[email protected] src]# mysql -u root  cacti < /var/www/html/cacti/cacti.sql

//修改配置文件
[[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″;

//更改属组
[[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安装cacti

http://ip/cacti
(这里如果出现“403 forbidden”的错误,请把selinux关闭)
点两下“next” 和一次”Finish“ 即可
输入admin   admin 登录,重新设置新的密码
//使cacti生成图表
[[email protected] html]# /usr/bin/php /var/www/html/cacti/poller.php
[[email protected] html]# crontab -e
//ADD
*/5 * * * * /usr/bin/php /var/www/html/cacti/poller.php

//剩下步骤与之前的cacti配置一致 ,可前往查看
时间: 2024-10-15 03:45:10

cacti (不可以利用yum安装cacti的配置)的相关文章

cacti (可以利用yum安装cacti的配置)

[[email protected] ~]# yum install -y epel-release[[email protected] ~]# [[email protected] ~]# yum install -y httpd php php-mysql mysql mysql-server mysql-devel php-gd libjpeg libjpeg-devel libpng libpng-devel //安装lamp [[email protected] ~]# yum ins

liunx利用yum安装php mysql gd(LAMP服务器)

说明:我在84vps中利用yum顺利安装mysql php 及gd库,因为vps本身自带了apahce2.2所以没有apache安装过程 工具/原料 Linux系统服务器,或VPS 系统:Centos6.0 32位.这里我也试过6.3 64位也是一样可以. 方法/步骤 一.安装mysql #yum -y install mysql mysql-server mysql-devel 配置mysql开机启动服务 #chkconfig --add mysqld    (在服务清单中添加mysql服务)

解决RedHat5.8无法利用yum安装软件问题

解决RedHat5.8无法利用yum安装软件问题 好久都没有用红帽系统了,今天在睿江云安装部署Sybase,在RedHat5.8的环境需要测试,用yum安装gcc结果如下: [[email protected] ~]# yum -y install gcc Loaded plugins: katello, product-id, security, subscription-manager Updating certificate-based repositories. Unable to re

利用yum 安装 lamp环境搭载 cacti监控和memcached数据库

今天测试了一下yum安装lamp和cacti监/控已经memcached数据库 首先介绍下我的系统环境 centos6.7 x86-64 1安装cacti yum install cacti 安装cacti 会自动安装lamp环境, 2接下来是memcached的安装步骤 yum install -y epel-release  --安装epel扩展源 里面有提供memcached libmemcached包 yum install -y libevent  memcached libmemca

yum安装cacti及集成个插件

[[email protected] ~]# yum-y install httpd php php-mysql php-ldap php-xml net-snmp-utils mysqlmysql-server net-snmp crond rrdtool lm_sensors gcc gcc-c++  zlib-devel  libpng-deve [[email protected]]# yum -y install libart_lgpl libart_lgpl-devel [[emai

centos6中yum安装cacti

yum install net-snmp net-snmp-libs net-snmp-utils rrdtool /etc/init.d/snmpd start chkconfig snmpd on /etc/init.d/rrdcached start chkconfig rrdcached on vi /etc/snmp/snmpd.conf view    systemview    included   .1.3.6.1.2.1 测试snmpwalk -v 1 -c public lo

linux系统利用yum安装其他软件或服务

1.下载yum的配置源(最好用网易163的源,也可以使其他的源) wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo 下载到 /etc/yum.repos.d/ 目录下面或者wget http://mirrors.163.com/.help/CentOS6-Base-163.repo 下载到 /etc/yum.repos.d/ 目录下面 2.编辑CentOS6-Base-163.repo把文件里面的$releasever全部替换为6

CentOS7利用yum安装node.js

1.下载node.js V8.x: curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - V7.x: curl --silent --location https://rpm.nodesource.com/setup_7.x | bash - V6.x: curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - V5.x: c

centos yum 安装jdk后配置JAVA_HOME

centos6.4 yum 安装jdk和JAVA_HOME的设置 2014-06-17 16:13 1176人阅读 评论(0) 收藏 举报  分类: linux(3)  版权声明:本文为博主原创文章,未经博主允许不得转载. #yum search jdk 查找可用的安装的jdk包 查询结果有以下两项(较新的版本): Java-1.7.0-openjdk.x86_64 : OpenJDK Runtime Environment java-1.7.0-openjdk-devel.x86_64 : O