zabbix 4.4安裝部署


訪問https://www.zabbix.com/download  有官方文檔

搭建lamp步驟,選擇系統版本及zabbix版本

Install and configure Zabbix server for your platform

a. Install Zabbix repository

# rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/8/x86_64/zabbix-release-4.4-1.el8.noarch.rpm
# dnf clean all

b. Install Zabbix server, frontend, agent

 # dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent

 由於mysql收費,故

 yum -y install mariadb

 yum -y install mariadb-server
 
 啟動
 systemctl start mariadb
 查看狀態
 systemctl status mariadb
 
c. Create initial database

# 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;

 

Import initial schema and data. You will be prompted to enter your newly created password.

 # zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix

 

d. Configure the database for Zabbix server

 

Edit file /etc/zabbix/zabbix_server.conf

 DBPassword=password

 

e. Configure PHP for Zabbix frontend

 

Edit file /etc/php-fpm.d/zabbix.conf, uncomment and set the right timezone for you.

 ; php_value[date.timezone] = Asia/Shanghai 

 

f. Start Zabbix server and agent processes

 

g. Configure Zabbix frontend

 # systemctl restart zabbix-server zabbix-agent httpd php-fpm
# systemctl enable zabbix-server zabbix-agent httpd php-fpm

 systemctl stop firewalld
 setenforce 0
 
 
g. Configure Zabbix frontend

  訪問 http://192.168.1.111/zabbix

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM