Centos 8 安装zabbix 爬坑

1.安装mininal 8


2.配置静态网络
BOOTPROTO=static
IPADDR=192.168.2.1
NETMASK=255.255.255.0
GATEWAY=192.168.2.200
DNS1=192.168.22.252


3.重启网络配置,先重载再up

nmcli connection reload
nmcli connection up ens33
nmcli networking off
nmcli networking on
nmcli device show


4.禁用防火墙
systemctl stop firewalld
systemctl disable firewalld.service
#setenforce 0
#getenforce
Permissive
#vi /etc/selinux/config
SELINUX=disable

###########SELINUX关闭,这是会忽略的一个地方,导致页面打开时候一直提示服务器无法连接


5.安装mysql
dnf install -y @mysql
systemctl start mysqld.service
systemctl enable mysqld.service
初始化mysql
mysql_secure_installation
create user zabbix@localhost identified by '1234.Com!';


6.安装zabbix
https://www.zabbix.com/download?zabbix=5.2&os_distribution=red_hat_enterprise_linux&os_version=8&db=mysql&ws=apache
/etc/zabbix/zabbix_server.conf
DBPassword
/etc/php-fpm.d/zabbix.conf
php_value[date.timezone] = Asia/Shanghai
#前面有;标识注释

tzselect
4 –> 9–>1–>1–>ok
然后执行下面这两条命令
rm /etc/localtime
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


systemctl start zabbix-server zabbix-agent httpd php-fpm
systemctl stop zabbix-agent httpd php-fpm zabbix-server
systemctl restart mysqld

原文地址:https://www.cnblogs.com/lijifei/p/13950042.html