zabbix6.0 LTS 保姆级安装教程
系统环境:rocky linux 8
数据库:mysql 8.0
关闭系统的防火墙
systemctl stop firewalld && systemctl disable firewalld关闭selinux
vi /etc/selinux/config打开config文件 将SELINUX=enforcing 改为 SELINUX=disabled
执行命令:setenforce 0
安装 Zabbix 源
rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm
dnf clean all安装Zabbix server,Web前端,agent
安装zabbix相关组件
dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent数据库部分
由于 6.0 的版本需要 mysql 8.0 以上,所以需要安装最新的 mysql 源 ,而 类 CentOS 8 系统和 9 系统只需要将软件源更新至最新,mysql 的版本就为 8
dnf -y update
dnf -y install mysql-server启动数据库
systemctl start mysqld && systemctl enable mysqld初始化数据库
mysql_secure_installation创建数据库实例及对应的用户
mysql -uroot -p
create database zabbix character set utf8mb4 collate utf8mb4_bin;
create user zabbix@localhost identified by '123321';
grant all privileges on zabbix.* to zabbix@localhost;
set global log_bin_trust_function_creators = 1;
quit;导入初始架构和相关数据
zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbixZabbix 部分配置
vim /etc/zabbix/zabbix_server.conf数据库实例名、数据库用户与下方数据库配置一致
启动服务
systemctl restart zabbix-server zabbix-agent httpd php-fpm
systemctl enable zabbix-server zabbix-agent httpd php-fpm前端部分配置
前端的地址为 http://服务器IP地址/zabbix
注意:如果没有中文语言 需要进行设置
##CentOS 8
dnf -y install glibc-langpack-zh.x86_64
## CentOS 7
yum groupinstall chinese-support -y
##Ubuntu
apt-get install language-pack-zh* -y 相关文章
- Spring Boot中对接Twilio以实现发送验证码和验证短信码
- Spring Boot 3.5:这次更新让你连配置都不用写了,惊不惊喜?
- Spring Boot+Pinot实战:毫秒级实时竞价系统构建
- SpringBoot敏感配置项加密与解密实战
- SpringBoot 注解最全详解,建议收藏!
- Spring Boot 常用注解大全:从入门到进阶
- SpringBoot启动之谜:@SpringBootApplication如何让配置化繁为简
- Springboot集成Kafka原理_spring集成kafka的原理
- Spring Boot中@Data注解的深度解析与实战应用
- 大佬用1000字就把SpringBoot的配置文件讲的明明白白!
