天天看點

Ubuntu 安裝 zabbix6.4

新節點已于2月22日完成硬體上架今天開始部署zabbix監控系統廢話不多說直接上指令此教程适合所有行業,zabbix安裝起來還是比較簡單,遇到問題基本上百度都能解決。後期會制訂一系列專用監控腳本,歡迎關注轉發

在安裝zabbix之前一定要自行安裝好mysql,ubuntu倉庫裡最新的版本是8,是以直接安裝檢視版本及密碼

sudo apt-get update
sudo apt-get install mysql-server
mysql --version
sudo cat /etc/mysql/debian.cnf 
mysql -u debian-sys-maint -p            

檢視Linux版本号,官網找到比對的版本開始安裝

cat /proc/version
https://www.zabbix.com/cn/download
sudo wget https://repo.zabbix.com/zabbix/6.3/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.3-3%2Bubuntu22.04_all.deb
sudo dpkg -i zabbix-release_6.3-3+ubuntu22.04_all.deb
sudo apt update
apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
sudo cat /etc/mysql/debian.cnf
mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by '你的密碼';
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
mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;
sudo vim /etc/zabbix/zabbix_server.conf
DBPassword=password
systemctl restart zabbix-server zabbix-agent apache2
systemctl enable zabbix-server zabbix-agent apache2
sudo apt-get install language-pack-zh-hant language-pack-zh-hans           
Ubuntu 安裝 zabbix6.4
Ubuntu 安裝 zabbix6.4
Ubuntu 安裝 zabbix6.4