Ubuntu安装cacti步骤


Ubuntu安装cacti步骤

# apt-get install apache2

# apt-get install libapache2-mod-php5

# apt-get install php5

# apt-get install msyql-server

# apt-get install php5-mysql

# apt-get install php5-snmp

# apt-get install snmp snmpd

# apt-get install rrdtool

# cd /var/www/

# tar zxf /root/cacti-0.8.7b.tar.gz

# mv cacti-0.8.7b cacti

# useradd cactiuser

# chown -R cactiuser:cactiuser  cacti/rra   cacti/log

# mysql -u root -p

密码

> create database cacti default character set utf8;

> grant all on cacti.* to cactiuser@localhost identified by '123456';

> quit

# mysql -u cactiuser -p cacti < cacti/cacti.sql

# cd cacti/include

# vi config.php

<? php
$ database_type = "mysql";
$ database_default = "cacti";
$ database_hostname = "localhost";
$ database_username = "cactiuser";
$ database_password = "123456";
$ database_port = "3306";
?>


# /usr/bin/php  /var/www/cacti/poller.php

# crontab -e

*/5 * * * *  /usr/bin/php   /var/www/cacti/poller.php & > /dev/null

浏览器:http://localhost/cacti


cacti安装向导界面 - 下一步 - 全新安装(php路径为/usr/local/php/bin/php) - 完成


用户名密码默认均为admin,第一次会让修改密码


本文出自 “linux” 博客,谢绝转载!

你可能感兴趣的:(cacti)