Step-by-Step Guide: Deploy Zabbix 7.0 on Ubuntu 22.04 LTS
This article walks through preparing the environment, adding the Zabbix repository, installing required packages and MySQL, creating the database, configuring Zabbix server and frontend, setting up agents on monitored hosts, and accessing the web UI, while also offering links to additional advanced operations resources.
Ubuntu 22.04 LTS: Deploy Zabbix 7.0
Environment Preparation
IP
Hostname
Config
10.0.0.50
zabbix-01
2c4G
10.0.0.51
zabbix-agent
2c4G
10.0.0.52
db
2c4G
1. Add Zabbix Repository
# wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest_7.0+ubuntu22.04_all.deb
# dpkg -i zabbix-release_latest_7.0+ubuntu22.04_all.deb
# apt update2. Install Zabbix Packages
# apt install -y zabbix-server-mysql zabbix-frontend-php zabbix-nginx-conf zabbix-sql-scripts zabbix-agent3. Install MySQL
# apt install -y mysql-server-8.0
# netstat -tnulp | grep 3306
# (output shows MySQL listening on 127.0.0.1:3306)4. Create Initial Database
# mysql
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@'%' identified by 'zabbix';
mysql> grant all privileges on zabbix.* to zabbix@'%';
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;Import the initial schema and data:
# scp /usr/share/zabbix-sql-scripts/mysql/server.sql.gz 10.0.0.52:/root
# zcat server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix
# (enter password "zabbix")
# mysql
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;5. Configure Zabbix Server Database
# egrep '^DBHost|^DBName|^DBUser|^DBPassword' /etc/zabbix/zabbix_server.conf
DBHost=10.0.0.52
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix6. Configure PHP for Zabbix Frontend
# cat /etc/zabbix/nginx.conf
server {
listen 8080;
server_name 10.0.0.50;
...
}7. Start Zabbix Server and Agent Services
# systemctl restart zabbix-server zabbix-agent nginx php8.1-fpm
# systemctl enable zabbix-server zabbix-agent nginx php8.1-fpm8. Set Chinese Web Interface Locale
# locale -a
C
C.utf8
POSIX
en_US.utf8
# sed -i 's/# zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/' /etc/locale.gen
# locale-gen
# systemctl restart zabbix-server zabbix-agent nginx php8.1-fpm9. Access Web Interface
http://10.0.0.50:8080
Username: Admin
Password: zabbix10. Monitor Hosts
1. Install Zabbix Agent on Target Host
# apt -y install zabbix-agent2. Edit Agent Configuration
# vim /etc/zabbix/zabbix_agentd.conf
# (set Server=10.0.0.50)3. Restart Agent Service
# systemctl restart zabbix-agent.service4. Add Host via Web UI
5. View Host Monitoring
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
MaGe Linux Operations
Founded in 2009, MaGe Education is a top Chinese high‑end IT training brand. Its graduates earn 12K+ RMB salaries, and the school has trained tens of thousands of students. It offers high‑pay courses in Linux cloud operations, Python full‑stack, automation, data analysis, AI, and Go high‑concurrency architecture. Thanks to quality courses and a solid reputation, it has talent partnerships with numerous internet firms.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
