安装数据库,用maraidb
yum group install mariadb -y
在/etc/my.cnf添加下面两行
innodb_file_per_table = 1
skip_name_resolve = 1
安装zabbix
配置yum源为阿里云的zabbix源,下载源,并且安装。安装后会在/etc/yum.repos.d/下多一个zabbix.repo源
wget https://mirrors.aliyun.com/zabbix/zabbix/2.4/rhel/7/x86_64/zabbix-release-2.4-1.el7.noarch.rpm -O /root/Downloads/zabbix.rpm
yum clean all
yum madecache //建立缓存
然后安装以下rpm包
安装zabbix依赖的PHP包
下载源
wget https://mirrors.tuna.tsinghua.edu.cn/epel//epel-release-latest-7.noarch.rpm -O /root/Download/zabbix-yum-src-php.rpm
安装源
rpm -ivh /root/Download/zabbix-yum-src-php.rpm
yum install zabbix-2.4.6-1.el7.x86_64.rpm zabbix-server-2.4.6-1.el7.x86_64.rpm zabbix-server-mysql2.4.6-1.el7.x86_64.rpm zabbix-agent-2.4.6-1.el7.x86_64.rpm zabbix-sender-2.4.6-1el7.x86_64.rpm zabbix-web-2.4.6-1.el7.noarch.rpm zabbix-get-2.4.6-1.el7.x86_64.rpm zabbix-web-mysql-2.4.6-1.el7.noarch.rpm trouser-0.3.11.2-4.el7_1.x86_64.rpm
Centos 7.1 安装zabbix-2.4.6-1.el7,其与trouser-0.3.11.2-3不兼容,需要升级trousers至0.3.11.2-4.el7_1