#!/bin/bash
db_user="root"
db_password=""
db_host="localhost"
db_port="3306"
zbx_db_name="zabbix"
zbx_db_user="zabbix"
zbx_db_password="123"
zabbix_server_ip="127.0.0.1"
zabbix_repo(){
echo '
[zabbix]
name=Zabbix Official Repository - $basearch
baseurl=http://mirrors.aliyun.com/zabbix/zabbix/4.2/rhel/7/$basearch/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
[zabbix-debuginfo]
name=Zabbix Official Repository debuginfo - $basearch
baseurl=http://mirrors.aliyun.com/zabbix/zabbix/4.2/rhel/7/$basearch/debuginfo/
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
gpgcheck=0
[zabbix-non-supported]
name=Zabbix Official Repository non-supported -
一键安装zabbix脚本
最新推荐文章于 2023-02-13 17:52:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)