centos下cacti的安装部署
[*] 部署snmp:yum -y install net-snmp net-snmp-utils
(service snmpd start 部署后的启动)
[*] 部署php和数据库:yum -y install httpd mysql mysql-server mysql-devel php php-mysql
(service httpd start部署后的启动)
(service mysqld start 部署后的启动)
[*] 部署rrd(轮询数据):yum -y install rrdtool
[*] 安装cacti
#tar xf cacti-0.8.7g.tar.gz -C /var/www/html/
# cd /var/www/html#mv cacti-0.8.7g/ cacti# vim cacti/include/config.phphttps://s1.运维网.com/wyfs02/M01/8F/6B/wKioL1jd3_mArHddAAAOFSNeZFU047.png-wh_500x0-wm_3-wmp_4-s_822841534.png 5.创建数据库
# mysql
mysql> create database cacti;
mysql> grant all on cacti.* to 'cactiuser'@'localhost' identified by '123456';
mysql> flush privileges;
mysql> exit
6.进行授权
# chown -R root:root /var/www/html/cacti/
# useradd cacti
# chown -R cacti:cacti /var/www/html/cacti/log/
# chown -R cacti:cacti /var/www/html/cacti/rra/
7.在浏览器输入http://IP/cacti/install/,进入cacti安装向导 (这里的端口默认是80,可以在vim /etc/httpd/conf/httpd.conf里面修改端口)
https://s1.运维网.com/wyfs02/M01/8F/6B/wKioL1jd4afAF6fMAAB4-6et-DQ202.png-wh_500x0-wm_3-wmp_4-s_2088884963.png
https://s2.运维网.com/wyfs02/M02/8F/6D/wKiom1jd4bLCGcLrAAA1BaR5VUs765.png-wh_500x0-wm_3-wmp_4-s_2678406284.png
https://s4.运维网.com/wyfs02/M02/8F/6D/wKiom1jd4b3STeX5AADcVuK-RAo342.png-wh_500x0-wm_3-wmp_4-s_2718707463.png
https://s3.运维网.com/wyfs02/M02/8F/6B/wKioL1jd4dfQ1XKoAACr-Fwl3iQ870.png-wh_500x0-wm_3-wmp_4-s_311944551.png
https://s2.运维网.com/wyfs02/M01/8F/6D/wKiom1jd4gLgTJReAACYrYdtpZo967.png-wh_500x0-wm_3-wmp_4-s_660077440.png
8.相关配置待续
页:
[1]