rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/9/x86_64/zabbix-release-6.4-1.el9.noarch.rpm
dnf clean all
dnf install zabbix-server-mysql zabbix-web-mysql zabbix-nginx-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
dnf -y update
dnf -y install mysql-server
systemctl start mysqld && systemctl enable mysqld
mysql_secure_installation
mysql -uroot -p<password>
mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
mysql> create user 'zabbix'@'localhost' identified by 'password';
mysql> grant all privileges on zabbix.* to 'zabbix'@'localhost';
mysql> SET GLOBAL log_bin_trust_function_creators = 1;
mysql> quit;
log_bin_trust_function_creators
:mysql -uroot -p<password>
mysql> SET GLOBAL log_bin_trust_function_creators = 0;
mysql> quit;
编辑配置文件 /etc/zabbix/zabbix_server.conf
DBPassword=password
编辑配置文件 /etc/nginx/conf.d/zabbix.conf
将下列两行代码首个字符#移除
# listen 8080;
# server_name example.com;
启动Zabbix server和agent进程,并为它们设置开机自启:
http://ip地址:8080,选择语言为:简体中文zh_CN
输入用户名zabbix和密码password,点下一步
zabbix 6.4 默认的账号密码,Admin,zabbix
若您觉得文章对您有帮助,记得关注+点赞+收藏起来,说不定哪天就用上了。