zabbix 5.0 的安装

Posted 风海洋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了zabbix 5.0 的安装相关的知识,希望对你有一定的参考价值。

1:安装前准备是否安装mysql,关闭防火墙,关闭selinux
rpm -qa | grep mysql
whereis mysql
systemctl stop firewalld && systemctl disable firewalld
setenforce 0
sed -i \'s/SELINUX=enforcing/SELINUX=disabled/g\' /etc/selinux/config
2: 安装mysql 5.7
wget http://repo.mysql.com/mysql57-community-release-el7-8.noarch.rpm
rpm -ivh mysql57-community-release-el7-8.noarch.rpm
yum install mysql-server -y
systemctl start mysqld && systemctl status mysqld
修改root 密码
grep \'temporary password\' /var/log/mysqld.log #查看数据库的初始密码

mysql> set password = password(\'Asdf@1234\');
mysql> flush privileges;
mysql> grant all privileges on *.* to root@"%" identified by "Asdf@1234" with grant option;
mysql> flush privileges;
3:安装zabbix
rpm -Uvh https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
yum clean all
yum install zabbix-server-mysql zabbix-agent -y
yum install centos-release-scl -y

vim /etc/yum.repos.d/zabbix.repo
[zabbix-frontend]
...
enabled=1

yum install zabbix-web-mysql-scl zabbix-nginx-conf-scl -y

创建zabbix数据库
create database zabbix character set utf8 collate utf8_bin;
create user zabbix@localhost identified by \'Asdf@1234\';
grant all privileges on zabbix.* to zabbix@localhost;
quit

#zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

vim /etc/zabbix/zabbix_server.conf
125 DBPassword= Asdf@1234

vim /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf
listen 80;
server_name 192.168.30.29;

vim /etc/opt/rh/rh-php72/php-fpm.d/zabbix.conf
listen.acl_users = apache,nginx
php_value[date.timezone] = Asia/shanghai

连接到您新安装的 Zabbix 前端:http:// server_ip_or_name
初始用户名Admin和密码zabbix
#到这里zabbix 5.0的安装工作已经结束

以上是关于zabbix 5.0 的安装的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu16.04.7LTS 安装zabbix-agent5.0

CentOS 7 源码安装Zabbix 5.0 LTS

CentOS 7 源码安装Zabbix 5.0 LTS

CentOS 7 二进制安装Zabbix 5.0 LTS

CentOS 7 二进制安装Zabbix 5.0 LTS

安装zabbix 5.0