Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

centos-7.sh修正建议 #8

Open
likecq opened this issue Jun 24, 2024 · 0 comments
Open

centos-7.sh修正建议 #8

likecq opened this issue Jun 24, 2024 · 0 comments

Comments

@likecq
Copy link

likecq commented Jun 24, 2024

路径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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant