#chkconfig httpd on
#servive mysqld start
mysql>create database cacti default character set utf8;
mysql>GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON cacti.* TO cacti@localhost IDENTIFIED BY 'passwd';
mysql>flush privileges;
mysql> \q
# cd /var/www/cacti
# mysql -u cacti -p cacti < cacti.sql
# vim /var/www/cacti/include/config.php
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "passwd";
$database_port = "3306";
<Directory /var/www/html/cacti>
DirectoryIndex index.php
AllowOverride all
order deny,allow
deny from all
allow from all
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc on
php_flag track_vars on
</Directory>
# /etc/init.d/httpd restart
crontab -e
*/5 * * * * cacti php /var/www/cacti/poller.php &>/dev/null
也可手工跑一次:/var/www/cacti/poller.php
[url]http://ftp.tw.debian.org/debian/pool/main/t/ttf-arphic-ukai/ttf-arphic-ukai_0.1.20060928.orig.tar.gz[/url]
# cd ttf-arphic-ukai-0.1.20060928/
# cp ukai.ttf /usr/share/fonts/ukai.ttf
安装完成后注意在"设置"中更改下面两个必改项.
常规->RRDTool应用程序版本 改为1.2.x,默认为1.0.x.不改可能图像不能正常显示出来.
路径->RRDTool默认字体路径 改为上面安装的ukai.ttf的文件路径,如/usr/share/fonts/ukai.ttf
from http://lemon12911.blog.51cto.com/237961/127168
thx for lemon12911