安装 Zabbix 存储库
root@whh:~# wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2-1+ubuntu22.04_all.deb
root@whh:~# dpkg -i zabbix-release_6.2-1+ubuntu22.04_all.deb
root@whh:~# apt update
安装Zabbix server,Web前端,agent
root@whh:~# apt install zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent
安装数据库
root@whh:~# apt install mysql-server -y
创建初始数据库
root@whh:~# mysql -uroot -p
Enter password: # 默认没有密码 直接回车
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.30-0ubuntu0.22.04.1 (Ubuntu)
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or