准备搭建环境 :
系统:CentOS7
首先关闭SElinux 和防火墙
安装MariaDB数据库
yum -y install mariadb-server mariadb-devel
yum -y install httpd mariadb-server mariadb php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mhash
yum -y install php-mysql
systemctl start mysqld
mysql -u root -p(输入密码)
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to 'zabbix'@'localhost' identified by '123456!!!';
flush privileges;
quit;
安装zabbix :
获取并安装zabbix的yum源
cd /home
rpm -Uvh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
yum -y install zabbix-get zabbix-sender zabbix-server-mysql zabbix-web zabbix-agent
zabbix-agent.:zabbix客户端,用来收集客户端各种参数
zabbix-get:zabbix的一个工具,用来检查是否可以获取服务器信息(一般服务端要安装)</