1.安装服务器端包
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpmyum clean allyum install zabbix-server-mysql zabbix-web-mysqlyum -y install mariadb-server
2.启动mariadb
systemctl start mariadb-serversystemctl enable mariadb-server
3.创建zabbix数据库
cd /usr/share/doc/zabbix-server-mysql-3.0.3/gunzip create.sql.gzmysql -uroot -p #输入mysql root 的密码-
mysql> create database zabbix charactersetutf8 collate utf8_bin; -
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by'zabbixpwd'; mysql> quit;#mysql -uzabbix -pzabbixpwd zabbix < create.sql
4.修改zabbix配置文件
vim /etc/zabbix/zabbix_server.confDBHost=localhostDBName=zabbixDBUser=zabbixDBPassword=zabbixpwdsystemctl start zabbix-serversystemctl enable zabbix-server
5.关闭Selinux和火墙,当然你配通也可以
setenforce 0systemctl stop firewalld
6.修改http配置文件
vim /etc/httpd/conf.d/zabbix.conf
php_value max_execution_time 300php_value memory_limit 128Mphp_value post_max_size 16Mphp_value upload_max_filesize 2Mphp_value max_input_time 300php_value always_populate_raw_post_data -1php_value date.timezone Asia/Chongqingsystemctl enable httpd
systemctl start httpd
7.Zabbix 地址: http://zabbix-frontend-hostname/zabbix in the browser. (Default username/password is Admin/zabbix).
8.安装和配置客户端
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpmyum -y install zabbix-agentvim /etc/zabbix/zabbix_agentd.confServer=zabbix-server-ipsystemctl enable zabbix-agentsystemctl start zabbix-agent