rocky9.7 安装zabbix 7.4

###1、更新yum源

# rpm -Uvh https://repo.zabbix.com/zabbix/7.4/release/rocky/9/noarch/zabbix-release-latest-7.4.el9.noarch.rpm
# dnf clean all

###2、安装

# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent

###3、安装mysql数据库,创建数据库  

# mysql -uroot -p
password
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user zabbix@localhost identified by 'Admin@1014$';
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> set global log_bin_trust_function_creators = 1;
mysql> quit;

###4、导入初始架构和数据

# zcat /usr/share/zabbix/sql-scripts/mysql/server.sql.gz | mysql --default-character-set=utf8mb4 -uzabbix -p zabbix

###5、禁用log_bin_trust_function_creators option after importing database schema.

# mysql -uroot -p
password
mysql> set global log_bin_trust_function_creators = 0;
mysql> quit;

###6、zabbix配置数据库:

编辑配置文件 /etc/zabbix/zabbix_server.conf
DBPassword=password

###7、启动Zabbix server和agent进程

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

###8、图形化中文字体乱码:将windows下的中文字体上传到/usr/share/fonts/dejavu-sans-fonts,改名为DejaVuSans.ttf

参加链接:

https://www.zabbix.com/cn/download?zabbix=7.4&os_distribution=rocky_linux&os_version=10&components=server_frontend_agent&db=mysql&ws=apache

  

posted @ 2026-01-15 17:39  hopeccie  阅读(0)  评论(0)    收藏  举报