lamp的安装http://www.apelearn.com/study_v2/chapter18.html
安装cacti所需的软件包(下载地址)
Rrdtool(http://oss.oetiker.ch/rrdtool/pub) net-snmp (http://jaist.dl.sourceforge.net/project/net-snmp/net-snmp/5.7.3/net-snmp-5.7.3.tar.gz)
1.安装rrdtool工具
[root@longge ~]# cd rrdtool-1.5.4
[root@longge rrdtool-1.5.4]# ./configure --prefix=/usr/local/rrdtool
再安装时出现以下错误(configure: error: Please fix the library issues listed above and try again.)
解决办法:yum install -y pango*
然后再次安装等出现这样的情况时安装成功了
make 时又出现问题了
解决方法:yum install perl-ExtUtils-MakeMaker
2.安装net-snmp
cd net-snmp-5.7.3
./configure
–prefix=/usr/local/net-snmp
安装cacti所需的软件包(下载地址)
Rrdtool(http://oss.oetiker.ch/rrdtool/pub) net-snmp (http://jaist.dl.sourceforge.net/project/net-snmp/net-snmp/5.7.3/net-snmp-5.7.3.tar.gz)
1.安装rrdtool工具
[root@longge ~]# cd rrdtool-1.5.4
[root@longge rrdtool-1.5.4]# ./configure --prefix=/usr/local/rrdtool
再安装时出现以下错误(configure: error: Please fix the library issues listed above and try again.)
解决办法:yum install -y pango*
然后再次安装等出现这样的情况时安装成功了
make 时又出现问题了
解决方法:yum install perl-ExtUtils-MakeMaker
2.安装net-snmp
cd net-snmp-5.7.3
./configure
–prefix=/usr/local/net-snmp
–enable-mfd-rewrites
–with-default-snmp-version=”3”
–with-sys-contact=”name,E_mail:maileaddress ”
–with-sys-location=”China”
–with-logfile=”/var/log/snmpd.log”
–with-persistent-directory=”/var/net-snmp”
make make install
安装cacti
tar zxvf cacti-0.8.8a.tar.gz [root@longge src]# mv cacti-0.8.8a /usr/local/nginx/html/cacti[root@longge src]# cd /usr/local/nginx/html/cacti/[root@longge cacti]# wget http://www.cacti.net/downloads/patches/0.8.8a/snmpv3_priv_proto_none.patchwget http://www.cacti.net/downloads/patches/0.8.8a/security.patch[root@longge cacti]# patch -p1 -N < snmpv3_priv_proto_none.patch[root@longge cacti]# patch -p1 -N < security.patchmysql> use cacti; mysql> source /var/www/html/cacti/cacti.sql;
这样就算安装完毕了 ip 访问时出错了
解决方法:重新编译php 或者加载--enable-sockets 模块添加好之后安装cacti完毕http://ip/cacti
然后下一步
初次安装的话选择全新安装下一步
下一步
然后输入密码就完事了密码是用户名:cacti 密码:cacti
编辑回复