訪問https://www.zabbix.com/download 有官方文檔php
搭建lamp步驟,選擇系統版本及zabbix版本mysql
# rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm
# dnf clean allweb
# dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent
sql
注apache
因爲mysql收費,故frontend
yum -y install mariadbide
# mysql -uroot
password
mysql> create database zabbix character set utf8 collate utf8_bin;
mysql> grant all privileges on zabbix.* to zabbix@localhost identified by 'password';
mysql> quit;php-fpm
Import initial schema and data. You will be prompted to enter your newly created password.flex
# zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
ui
Edit file /etc/zabbix/zabbix_server.conf
DBPassword=password
Edit file /etc/php-fpm.d/zabbix.conf, uncomment and set the right timezone for you.
; php_value[date.timezone] = Asia/Shanghai
# systemctl restart zabbix-server zabbix-agent httpd php-fpm
# systemctl enable zabbix-server zabbix-agent httpd php-fpm
訪問 http://192.168.1.111/zabbix