1、zabbix安装的相关版本信息。
环境准备
OS:CentOS 7
安装步骤
一,关闭selinux和iptables
[root@localhost ~]# systemctl stop firewalld.service
[root@localhost ~]# setenforce 0
二,安装Zabbix rpm包仓库
1.1安装yum包
rpm -vhi http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm
1.2安装相关软件
yum install -y zabbix-server zabbix-web zabbix-server-mysql zabbix-web-mysql mariadb zabbix-agent mariadb-server
注:如果server端页需要监控则需要安装 zabbix-agent
1.3 修改php时区配置
vim /etc/httpd/conf.d/zabbix.conf
hp_value date.timezone Asia/Shanghai
2.数据库配置
在centos7上如果通过yum安装的话,已经找不到了mysql已经变成了mariadb。所以启动方式有所不同
2.1 systemctl start mariadb
2.2创建zabbix所以的数据库及用户
mysql
create database zabbix character set utf8 collate utf8_bin;
grant all on zabbix.* to zabbix@‘localhost’ identified by ‘123’;
exit
cd /usr/share/doc/zabbix-server-mysql-3.0.31/
zcat create.sql.gz | mysql -uzabbix -p123 zabbix
2.3修改zabbix配置
vim /etc/zabbix/zabbix_server.conf
DBHost=localhost 数据库所在主机
DBName=zabbix 数据库名
DBUser=zabbix 数据库用户
DBPassword=123 数据库密码
2.4启动zabbix及http
systemctl start zabbix-server
systemctl start httpd
3.web界面安装master
访问 http://192.168.130.130/zabbix/setup.php