一、准备工作:
虚拟环境软件VMware Workstation 17 pro,可以根据自身需求来选择,VMware下载链接参考如下:https://customerconnect.vmware.com/en/downloads/search?query=workstation
镜像:CentOS-7-x86_64-DVD-2009.iso
官方下载地址:Download (centos.org) (大家可以自己选择下载的版本)
二、离线安装zabbix-server
拷入rpm包解压
安装mysql
cd /opt/package/mysql
rpm -ivh mysql-community-* --force --nodeps
创建存储目录:
mkdir -p /data/mysql
chown mysql:mysql /data/mysql
编辑配置文件:
vim /etc/my.cnf
[mysqld]
datadir=/data/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci
port=3306
lower_case_table_