2024年5月12日发(作者:)

CentOS 7 安装 cacti 1.1.x

环境:CentOS 7.4

安装前提

a、 安装系统补丁

yum update -y

b、 开启ntp,保证时间正确

yum install chrony -y

systemctl enable chronyd

systemctl start chronyd

c、 禁用selinux,重启生效

sed -i 's/SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config

reboot

1、 安装mariadb 10.1

cacti 1.1.0 需要mysql >= 5.6 ,所以这里选择mariadb 10.1

yum install centos-release-openstack-ocata -y

yum install mariadb-server -y

2、 mariadb参数调整(最低要求)

max_heap_table_size = 128M

max_allowed_packet = 32M

tmp_table_size = 64M

join_buffer_size = 64M

innodb_buffer_pool_size = 512M

innodb_doublewrite = off

innodb_flush_log_at_timeout = 3

重启mariadb让配置生效

systemctl enable mariadb