Quick-Installation-ZABBIX
Quick-Installation-ZABBIX copied to clipboard
centos-7.sh修正建议
路径Quick-Installation-ZABBIX-master\zabbix6\centos-7.sh
这段语句有问题,国内用户无法访问:
安装mariadb源
echo '安装mariadb源...' sudo curl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.0
修正建议如下:
创建 MariaDB 仓库配置文件
sudo tee /etc/yum.repos.d/MariaDB.repo <<EOF
MariaDB 11.0 CentOS repository list - created 2024-06-24 08:00 UTC
https://mirrors.tuna.tsinghua.edu.cn/
[mariadb] name = MariaDB baseurl = https://mirrors.tuna.tsinghua.edu.cn/mariadb/yum/11.0/centos7-amd64 gpgkey=https://mirrors.tuna.tsinghua.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF
导入 MariaDB GPG 密钥
sudo rpm --import https://mirrors.tuna.tsinghua.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB
更新包索引
sudo yum update -y