最近各大媒体网络都充斥着焦虑,“双减”“史上最难就业季”“阶层封闭”
吓的我赶紧学习,好像一不小心就会被时代抛弃
领导说让装zabbix,好吧装个环境还不简单~
安装环境
- 版本:CentOS 7.9
- Zabbix版本:6.0.2
安装准备
- mysql8.0
- php
- apache
- zabbix
1. 下载zabbix-6.0.2包并解压
cd /tmp
wget https://cdn.zabbix.com/zabbix/sources/stable/6.0/zabbix-6.0.2.tar.gz
tar -zxvf zabbix-6.0.2.tar.gz
2. 安装mysql8.0
yum -y install net-snmp-devel
yum -y install libevent-devel
wget http://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql80-community-el7/mysql80-community-release-el7-1.noarch.rpm
./configure --prefix=/opt/zabbix/ --enable-server --enable-agent --with-net-snmp --with-mysql
ls
rpm -ivh mysql80-community-release-el7-1.noarch.rpm
yum -y install mysql-devel
yum -y install net-snmp-devel
yum -y install libevent-devel
yum -y install gcc-c++
yum install -y lrzs