首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
curl命令替换centos和ubuntu源
curl命令替换centos和ubuntu源
it
2026-04-10
2
导语:因为经常有不同的服务器 需要操作 有一些服务器yum源没有替换过,下载很慢。而通过一些跳板机或者安全设备不能复制命令,需要手打命令替换yum源或者apt源。所以就自己写了个简单的shell,来替换centos7和ubuntu的源。
# centos7 更换为阿里源 备份原来的yum至bak内
curl
http://47.111.189.127/download/yum.sh
|
sh
# ubuntu
curl
http://47.111.189.127/download/apt.sh
|
sh
效果
转载请注明原文地址: https://lol.8miu.com/read-36001.html
最新回复
(
0
)