跳至主要內容

离线安装脚本

程序员李某某小于 1 分钟

离线安装脚本

前言

最近在研究内网离线部署,发现部署个MySQL都很繁琐,所以研究一下一件脚本 参考了[脚本家园]公众号的脚本,感谢,这个公众号提供的脚本大多是Python的,我将其改造为shell脚本,方便大家使用,基于CentOS 7最小化安装时原作者提供的依赖包不全,加以补充

下载依赖包

在镜像源中找

[官方]http://mirror.centos.org/ 注意官方提示:

This directory tree doesn't contain any supported/maintained release !
For CentOS Stream 9 and beyond (including src.rpm and debuginfo packages), see CentOS Stream mirror.
For archived content from EOL releases, see Vault mirror and Debuginfo mirror
此目录树不包含任何受支持/维护的版本!
对于 CentOS Stream 9 及更高版本(包括 src.rpm 和 debuginfo 包),请参阅CentOS Stream 镜像。
对于 EOL 版本的存档内容,请参阅 Vault 镜像和 Debuginfo 镜像

所以需要在 Vault mirror 中找 Vault 镜像open in new window阿里云open in new window 官方源:h

Mysql 5.7

shell脚本

上次编辑于:
贡献者: liyuanhao