当前位置:网站首页>Rocky/GNU之Zabbix部署(1)
Rocky/GNU之Zabbix部署(1)
2022-07-31 00:45:00 【bojiSAMA】
关于Rocky/GNU
Rocky Linux 是红帽宣布放弃 CentOS Linux 后,由 CentOS 联合创始人 Gregory Kurtzer 创建的 Linux 发行版,旨在继承 CentOS 的社区属性。Rocky Linux 是一个社区属性的企业级操作系统,它与 Red Hat Enterprise Linux 100% 兼容,最新的稳定版本 Rcoky Linux 8.4 于2021年 5 月 18 日发布,支持 x86_64 和 ARM64 (AArch64) 架构。
可以简单理解为 Rocky系统无缝衔接了CentOS/Redhat的操作。
可以简单的认为今后的Rocky取代了CentOS这个操作系统。
Rocky Linux 的安装和使用与 CentOS8 几乎完全一致,完全可以作为最佳的 CentOS 的替代品。
关于Zabbix
Zabbix由Alexei Vladishev创建,目前由Zabbix SIA积极开发和支持。
Zabbix是一个企业级开源分布式监控解决方案。
Zabbix是一款软件
Zabbix可监控大量的网络参数以及服务器,虚拟机,应用程序,服务,数据库,网站,云服务等的运行状况和完整性。
Zabbix使用灵活的通知机制,允许用户为几乎任何事件配置基于电子邮件的警报。
这允许对服务器问题做出快速反应。
Zabbix基于存储的数据提供出色的报告和数据可视化功能。这使得Zabbix成为容量规划的理想选择。
————————Zabbix官方文档
Zabbix简单运行架构

部署流程
$ rpm -Uvh https://repo.zabbix.com/zabbix/4.5/rhel/8/x86_64/zabbix-release-4.5-2.el8.noarch.rpm
$ dnf clean all # 删除因各种原因在系统中残留各种过时的文件和未完成的编译工程。
$ dnf install mariadb-server
$ systemctl enable mariadb
$ systemctl start mariadb
$ sudo /usr/bin/mysql_secure_installation 配置数据安全认证信息
> 配置数据库root密码后,后续操作全选Y。
$ dnf install zabbix-server-mysql 安装zabbix-server-mysql包
$ systemctl enable mariadb 开机自启动
$ systemctl start mariadb 启用数据库
$ sudo mysql -u root -p
> 键入自己的数据库root密码
> create database zabbix character set utf8 collate utf8_bin;
> grant all privileges on zabbix.* to [email protected] identified by ‘password’;
> flush privileges;
> quit
以下两者选其一操作:
- $ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p zabbix
> 输入配置的数据库root密码在数据库控制台输入 - $ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -u zabbix -p密码 zabbix
- 1&2的作用相同:
# 将/usr/share/doc/zabbix-server-mysql*/create.sql.gz里的数据导入到zabbix数据库里
$ vim /etc/zabbix/zabbix_server.conf
DBName=zabbix
DBPassword= password #密码随意更改
$ systemctl enable zabbix-server
$ systemctl start zabbix-server
$ systemctl status zabbix-server
$ tail -f /var/log/zabbix/zabbix_server.log
# tail -f实时监控日志,监控的时候可以打开新的shell进行操作以便实时观察日志变化
$ dnf install php
$ vim /etc/php-fpm.d/zabbix.conf
; php_value[date.timezone] = Asia/Ulaanbaatar
$ dnf install httpd
$ dnf install zabbix-web-mysql zabbix-apache-conf
$ systemctl enable httpd php-fpm
$ systemctl restart zabbix-server httpd php-fpm
测试
http://<配置Zabbix的IP地址>/zabbix
后续:
可能出现的问题(1):红框处出现fail,
问题(1)的解决方案:
配置内写操作:
vim /etc/php.ini
date.timezone = "Asia/Ulaanbaatar"
边栏推荐
- 【Multithreading】
- typescript14-(单独指定参数和返回值的类型)
- WEB Security Basics - - - Vulnerability Scanner
- A complete guide to avoiding pitfalls for the time-date type "yyyy-MM-dd HHmmss" in ES
- Summary of MySQL database interview questions (2022 latest version)
- typescript13 - type aliases
- MySQL Series 1: Account Management and Engine
- The difference between substring and substr in MySQL
- 场景之多数据源查询及数据下载问题
- 论文理解:“Designing and training of a dual CNN for image denoising“
猜你喜欢

Asser uses ant sword to log in

What is Promise?What is the principle of Promise?How to use Promises?

寄存器(汇编语言)

ShardingSphere's unsharded table configuration combat (6)

typescript13-类型别名

Niuke.com question brushing training (4)

Thesis understanding: "Designing and training of a dual CNN for image denoising"

Homework: iptables prevent nmap scan and binlog

WEB安全基础 - - -漏洞扫描器

【c语言课程设计】C语言校园卡管理系统
随机推荐
深度学习可以求解特定函数的参数么?
【愚公系列】2022年07月 Go教学课程 019-循环结构之for
MySQL database (basic)
Consistency and Consensus of Distributed Systems (1) - Overview
Shell programming of conditional statements
Mini Program - Global Data Sharing
MySql data recovery method personal summary
Shell编程之条件语句
typescript12-联合类型
不用Swagger,那我用啥?
Why use high-defense CDN when financial, government and enterprises are attacked?
ES 中时间日期类型 “yyyy-MM-dd HHmmss” 的完全避坑指南
响应式布局与px/em/rem的比对
ES6中 async 函数、await表达式 的基本用法
background has no effect on child elements of float
typescript11 - data types
BOM系列之Navigator对象
小程序-全局数据共享
Understand from the 11 common examples of judging equality of packaging types in the written test: packaging types, the principle of automatic boxing and unboxing, the timing of boxing and unboxing, a
DOM系列之 offset 系列