1、关闭防火墙和selinux
service iptables stop #关闭防火墙
systemctl disable firewalld #禁止开启自启动
关闭selinux:/etc/selinux/config
修改配置文件:将SELINUX=enforcing改为SELINUX=disabled
getenforce #查看selinux状态
修改配置文件后保存退出
[root@localhost ~]# reboot #重启系统
2、安装Cacti依赖的软件
[root@localhost ~]# yum -y install mysql mysql-server mysql-devel httpd php php-pdo php-snmp php-mysql lm_sensors net-snmp net-snmp-utils net-snmp-libs rdtool rrdtool-devel perl-PlRPC perl-DBI perl-rrdtool perl-DBD-MySQL wget vim epel*
3、配置snmp
[root@localhost ~]# vi /etc/snmp/snmpd.conf
将 com2sec notConfigUser default public 中的 "default" 改为 "监控端服务器ip"(“127.0