用了一个小时的时间安装配置了个CACTI,全凭经验和系统的Document就顺利在CentOS5部署上系统了。
简单记录安装步骤如下:
1.安装系统所需要的RPM包 httpd、php、php-mysql、php-snmp、mysql、mysql-server、net-snmp
其实还有两个包是文档中没有提的,应该是后序配置系统要用的包 rrdtool和net-snmp-utils
rrdtool可以编译后使用,我用的RPM大家可以从http://rpm.pbone.net/index.php3?stat=3&search=rrdtool&srodzaj=3 下载对应系统版本的包
2.配置PHP环境
Please find the file /etc/php.ini and make the following changes to it:
extension_dir = /etc/php.d
This will enable PHP to find more configuration directives in that very directory.
Activate the MySQL extension via /etc/php.d/mysql.ini ;
Enable mysql
extension moduleextension=mysql.so
Activate the SNMP extension via /etc/php.d/snmp.ini ;
Enable snmp
extension moduleextension=snmp.so
If using PHP 4.3.5 or less include the following line. I
f using 4.3.6 or greater, you should remove this line if present.
session.save_path=/tmp
If you want to allow template importing, uncomment the following line:
file_uploads = On
如果你是RPM安装,你无需修改extension_dir = /etc/php.d保持默认即可.其他部门可根据说明调整。
晚上再完善了。。。。