分类: 系统运维
2014-06-09 12:35:16
[root@cacti ~]#yum -y install cairo-devel libxml2-devel pango-devel perl-devel perl-CPAN
安装net-snmp
[root@cacti]# yum install net-snmp net-snmp-devel net-snmp-libs net-snmp-utils
Vi /etc/snmp/snmpd.conf
#41 com2sec notConfigUser 127.0.0.1 public
#62 access notConfigGroup "" any noauth exact all none none
#85 view all included .1
[root@cacti ~]# chkconfig –level 35 snmpd on
[root@cacti ~]# service snmpd start
[root@cacti ~]#useradd cacti
[root@cacti ~]#echo “123456” | passwd --stdin cacti
[root@cacti ~]# tar zxvf cacti-0.8.8b.tar.gz
[root@cacti ~]# mv cacti-0.8.8b /usr/local/apache/htdocs/cacti
[root@cacti cacti]# chown cacti:cacti log -R
[root@cacti cacti]# chown cacti:cacti rra –R
[root@cacti ~]#mysql -uroot -p
mysql> create database cacti;
mysql> insert into mysql.user(host,user,password) values ('localhost','cacti',password('123456'));
mysql>flush privileges;
mysql> grant all on cacti.* to cacti@'localhost' identified by '123456';
[root@cacti cacti]# mysql -ucacti -p123456
cacti < cacti.sql \\导入数据库
报错:
原因:数据库版本兼容性问题
解决方法:
vi /usr/local/apache/htdocs/cacti/cacti.sql
[root@cacti cacti]# mysql -ucacti -p123456
cacti < cacti.sql \\在此导入
编辑global.php文件,添加如下内容:
[root@cacti]# vi /usr/local/apache/htdocs/cacti/include/global.php
PS:Cacti安装完毕默认显示美国时刻
访问: