Rpm –e net-snmp --nodeps
l ./configure --prefix=/usr/local/mysql
l chown -R mysql /usr/local/mysql/var
l chgrp -R mysql /usr/local/mysql
l cp support-files/my-medium.cnf /etc/my.cnf
l echo /usr/local/mysql/lib/mysql >> /etc/ld.so.conf
l echo /usr/local/lib >> /etc/ld.so.conf
l cp support-files/mysql.server /etc/init.d/mysql
l /usr/local/mysql/bin/mysqld_safe --user=mysql &
l ln -s ../init.d/mysql S85mysql
l ln -s ../init.d/mysql K85mysql
l ln -s ../init.d/mysql S85mysql
l ln -s ../init.d/mysql K85mysql
l ./configure --prefix=/www --enable-so
l cp apachectl /etc/init.d/httpd
l ./configure --prefix=/www/php --with-apxs2=/www/bin/apxs --with-config-file-path=/www/php --enable-sockets --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/include --with-gd
l cp php.ini-dist /www/php/php.ini
l cp /www/conf/httpd.conf /www/conf/httpd.conf.backup
l echo ####################### >> /www/conf/httpd.conf
l echo # Added via Lee Carter's Script >> /www/conf/httpd.conf
l echo ####################### >> /www/conf/httpd.conf
l echo AddType application/x-tar .tgz >> /www/conf/httpd.conf
l echo AddType application/x-httpd-php .php >> /www/conf/httpd.conf
l echo AddType image/x-icon .ico >> /www/conf/httpd.conf
l echo DirectoryIndex index.php index.html index.html.var >> /www/conf/httpd.conf
l mysql> set password for root@localhost=password('rootpw');
l mysql> create database cactidb;
l mysql> grant all on cactidb.* to root;
l mysql> grant all on cactidb.* to root@localhost;
l mysql> grant all on cactidb.* to cactiuser;
l mysql> grant all on cactidb.* to cactiuser@localhost;
l mysql> set password for cactiuser@localhost=password('cactipw');
l ./configure --prefix=/usr/local/rrdtool
Setup Menu:
Default Version of SNMP (3): 1
System Contact Information (root@): New Cacti User
System Location (Unknown): Data Center Rack 2A1
Location to write logfile (/var/log/snmpd.log):
Location to write presistant information (/var/net-snmp):
l mv cacti-0.8.6b cacti/
l /usr/local/mysql/bin/mysql --user=root --password=rootpw cactidb < cacti.sql
l chown -R cactiuser rra/ log/
$database_defaut = “cactidb”;
$database_hostname = “localhost”;
$database_username = “cactiuser”;
$database_password = “cactipw”;
*/5 * * * * cactiuser /www/php/bin/php /www/htdocs/cacti/poller.php > /dev/null 2>&1
2、Default(New Install) → 点击Next