摘要:
...
1、关闭防火墙和selinux
systemctl stop firewalld.service (关闭防火墙) systemctl start firewalld.service (开启防火墙) systemctl disable firewalld.service (禁止防火墙自启动) systemctl enable firewalld.service (防火墙随系统开启启动)
2、添加zabbix存储库
打开https://www.zabbix.com/cn/download查看存储库
# rpm -Uvh https://repo.zabbix.com/zabbix/6.4/rhel/8/x86_64/zabbix-release-6.4-1.el8.noarch.rpm # dnf clean all
3、安装PHP
[root@localhost tmp]# dnf module switch-to php:7.4
4.安装Zabbix server,Web前端,agent
[root@localhost tmp]# dnf install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-sql-scripts zabbix-selinux-policy zabbix-agent
5.安装MYSQL数据库
注意:zabbix 6.4 版本安装MYSQL 8.00.30
6.创建初使数据库,新建用户zabbix 密码password
# 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;
7.导入初始架构和数据,系统将提示您输入新创建的密码password
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;
8.为Zabbix server配置数据库, 编辑配置文件 /etc/zabbix/zabbix_server.conf
9.启动Zabbix server和agent进程,并为它们设置开机自启
systemctl restart zabbix-server zabbix-agent httpd php-fpm systemctl enable zabbix-server zabbix-agent httpd php-fpm
10.打开htto://host/zabbix开始进行配置
不懂英文的可以参照下面链接设置为中文
配置数据库用户zabbix密码password
选择时区为上海
到此ZABBIX已经安装完成,默认账号和密码为数Admin/zabbix区分大小写哟
还没有评论,来说两句吧...