当前位置: 首页 > article >正文

Zabbix7.0安装(Ubuntu24.04+LNMP)

1.选择版本

下载Zabbix

2.安装虚拟机

这里选择在Ubuntu24.04上安装Zabbix.

安装链接https://blog.csdn.net/weixin_58189050/article/details/145446065

配置源

vim /etc/apt/sources.list

deb https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-security main restricted universe multiverse

deb https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ noble-backports main restricted universe multiverse
apt update

 

 

3.安装zabbix

1.安装repository

#Install Zabbix repository
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.0+ubuntu24.04_all.deb
dpkg -i zabbix-release_latest_7.0+ubuntu24.04_all.deb
apt update

2.安装Zabbix server,Web前端,agent

apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent

3.安装数据库

apt install mysql-server -y

4.创建数据库

# mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'password';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;

导入初始架构和数据,系统将提示您输入新创建的密码。

 zcat /usr/share/zabbix-sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

5. 为Zabbix server配置数据库

vim /etc/zabbix/zabbix_server.conf

 6.为Zabbix前端配置PHP

vim  /etc/zabbix/nginx.conf

7. 启动Zabbix server和agent进程

systemctl restart zabbix-server zabbix-agent nginx php8.3-fpm
systemctl enable zabbix-server zabbix-agent nginx php8.3-fpm

 4.图形化安装

1.中文安装

apt install language-pack-zh-hans
update-localelangzh_cn.utf-8
export langzh_cn.utf-8

systemctl restart zabbix-server zabbix-agent nginx php8.3-fpm

其余下一步即可。

 

默认密码Admin:zabbix

2.解决乱码

解决乱码
sudo add-apt-repository universe
sudo apt update
sudo apt install fonts-wqy-microhei
sudo cp /usr/share/fonts/truetype/wqy/wqy-microhei.ttc /usr/share/zabbix/assets/fonts/graphfont.ttf

 

修改之后

 


http://www.kler.cn/a/533478.html

相关文章:

  • 开源安全一站式构建!开启企业开源治理新篇章
  • C基础寒假练习(2)
  • 【axios二次封装】
  • 蓝桥与力扣刷题(234 回文链表)
  • centos stream 9 安装 libstdc++-static静态库
  • 使用React和Material-UI构建TODO应用的前端UI
  • ES面试题
  • 【学Rust写CAD】4 相对坐标系详解与实现要素概览
  • YOLOv11-ultralytics-8.3.67部分代码阅读笔记-autobackend.py
  • WebSocket协议里客户端发送给服务器的数据会用4字节的掩码循环异或的分析
  • UE5 创建自定义工具上下文的方法
  • H3CIE-RS+面试——OSPF(倒计时第40天)
  • 寒假2.4:序列化漏洞
  • AWS 成本和使用情况报告:全面管理云支出和优化资源
  • 大语言模型轻量化:知识蒸馏的范式迁移与工程实践
  • React组件开发技巧:如何优雅地传递Props?
  • 【免费】2007-2019年各省科技支出占一般公共预算支出的比重数据
  • 顺丰数据分析(数据挖掘)面试题及参考答案
  • 21.2.2 保存
  • BUU19 [BJDCTF2020]Easy MD51
  • 企业四要素如何用PHP进行调用
  • 在ubuntu22.04上先部署docker,再编译安装kamailio,附详细操作流程及docker和makailio的版本号
  • Junit5使用教程(5)
  • openai agent第二弹:deepresearch原理介绍
  • P5524 [Ynoi2012] NOIP2015 充满了希望 Solution
  • MySQL 事件调度器(Event Scheduler)的使用