- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
cacti安装与配置
Cacti安装与配置一、准备所需要的软件包Apache ? ? /Mysql ? ? ?/Php ? ? ? ?Rrdtool ? ?http://oss.oetiker.ch/rrdtool/Net-snmp ? /Cacti ? ? ?/其中apache、mysql、php通过yum安装二、安装所需要的软件1.安装LAMP[root@cacti ~]# yum -y install httpd mysql-server php php-mysql mysql-devel[root@cacti ~]# chkconfig httpd on[root@cacti ~]# chkconfig mysqld on[root@cacti ~]# /etc/init.d/httpd start[root@cacti ~]# /etc/init.d/mysqld start安装完成后,可通过以下程序测试[root@cacti html]# cat inex.php?phpphpinfo();?2.安装rrdtoolRrdtool安装需要cairo、libxml2、pango库支持,可通过yum安装[root@cacti ~]# yum -y install cairo-devel libxml2-devel pango-devel[root@cacti ~]# tar zxvf rrdtool-1.4.7.tar.gz[root@cacti ~]# cd rrdtool-1.4.7[root@cacti rrdtool-1.4.7]# ./configure --prefix=/usr/local/rrdtool[root@cacti rrdtool-1.4.7]# make make install[root@cacti rrdtool-1.4.7]# ln -s /usr/local/rrdtool/bin/* /usr/local/bin/?3.安装net-snmp[root@cacti ~]# tar zxvf net-snmp-.tar.gz[root@cacti ~]# cd net-snmp-[root@cacti net-snmp-]# ./configure --prefix=/usr/local/net-snmp[root@cacti net-snmp-]# make make install[root@cacti net-snmp-]# cp EXAMPLE.conf /etc/snmpd.conf[root@cacti ~]# ln -s /usr/local/net-snmp/bin/* /usr/local/bin/[root@cacti ~]# vim /etc/snmpd.confrocommunity public localhost #去掉注释[root@cacti ~]# /usr/local/net-snmp/sbin/snmpd?-c /etc/snmpd.conf加入开机启动[root@cacti ~]# echo /usr/local/net-snmp/sbin/snmpd -c /etc/snmpd.conf /etc/rc.local?4.安装cacti[root@cacti ~]# tar zxvf cacti-0.8.7i-PIA-3.1.tar.gz[root@cacti ~]# mv cacti-0.8.7i-PIA-3.1/* /var/www/html/#将cacti中的内容移到 web目录[root@cacti ~]# chown -R apache:apache /var/www/html/[root@cacti ~]# mysql -uroot?#连接到mysql创建数据库mysql create database cacti;#创建cacti数据库mysql insert into mysql.user(host,user,password) values (localhost,cacti,password(cacti123));#建立用户cacti,密码cacti123mysql flush privileges;#重载mysql授权表mysql grant all on cacti.* to cacti@localhost identified by cacti123;#把数据库cacti授权于用户cacti[root@cacti ~]# cd /var/www/html/[root@cacti html]# mysql -ucacti -pcacti123 cacticacti.sql #将cacti数据库导入修改网站配置文件,使用正确连接数据库参数[ro
您可能关注的文档
最近下载
- 1桌签格式.doc VIP
- 丰富多彩的中华传统体育+课件 2025-2026学年人教版(2024)初中体育与健康八年级全一册.pptx VIP
- XX能源公司XX风电场×MW工程建设管理制度汇编(总承包项目部)完整版.doc
- 2020抽水蓄能电站施工设计方案.pdf VIP
- 儿童糖尿病酮症酸中毒诊疗指南(2024).pptx VIP
- 虚拟电厂管理平台需求及设计-方案合集.docx VIP
- 茶饮料灭菌技术概述.pdf VIP
- 2025新高考高一函数定义域值域解析式易错培优竞赛试题(解析板).docx
- 常用NTC47KΩ阻值B=3950阻温R-T对照表.pdf VIP
- 歌曲《我和我的祖国》课件.pptx
文档评论(0)