Bootstrap

zabbix服务端与客户端安装与配置

说明:zabbix3.0以上一定要装在centos7上。

1、关闭防火墙
getenforce
setenforce 0
vi /etc/selinux/config
SELINUX=disabled

2、切换到home目录
cd /home

3、下载mysql5.7和zabbix3.0
wget http://repo.mysql.com//mysql57-community-release-el7-8.noarch.rpm
rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

4、安装zabbix和mysql
yum -y install zabbix-server zabbix-server-mysql

5、创建数据库
create database zabbix character set utf8 collate utf8_bin;

6、创建用户并授权
grant all privileges on zabbix.* to zabbix@localhost identified by '*9water123PDSH';
flush privileges;

7、导入表
cd /usr/share/doc/zabbix-server-mysql-3.0.3
zcat create.sql.gz | mysql -hlocalhost -uzabbix -p zabbix

8、修改配置文件
vi /etc/zabbix/zabbix_server.conf
DBHost=192.168.15.18
DBName=zabbix
DBUser=zabbix
DBPassword=x9water123PDSH

;