惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
The Blog of Author Tim Ferriss
S
Securelist
D
Docker
The Register - Security
The Register - Security
GbyAI
GbyAI
Recorded Future
Recorded Future
Engineering at Meta
Engineering at Meta
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
罗磊的独立博客
博客园 - 【当耐特】
F
Full Disclosure
WordPress大学
WordPress大学
腾讯CDC
小众软件
小众软件
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
SecWiki News
SecWiki News
L
Lohrmann on Cybersecurity
I
InfoQ
MyScale Blog
MyScale Blog
量子位
Cyberwarzone
Cyberwarzone
博客园 - 三生石上(FineUI控件)
The Hacker News
The Hacker News
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园_首页
H
Help Net Security
K
Kaspersky official blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Webroot Blog
Webroot Blog
Blog — PlanetScale
Blog — PlanetScale
V
Vulnerabilities – Threatpost
Y
Y Combinator Blog
The Cloudflare Blog
P
Proofpoint News Feed
V
Visual Studio Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Tailwind CSS Blog
爱范儿
爱范儿
P
Privacy International News Feed
Security Archives - TechRepublic
Security Archives - TechRepublic
The GitHub Blog
The GitHub Blog
C
Cybersecurity and Infrastructure Security Agency CISA
B
Blog RSS Feed

Rat's Blog - vps

SpartanHost:512MB内存/10GB硬盘/1T流量/DDoS防御/KVM/西雅图/最低月付$2 - Rat's Blog 一个去中心化的图片分享平台:ipfs.pics搭建教程 - Rat's Blog 使用Aira2下载文件后自动上传到Google Drive网盘 - Rat's Blog Flask+WebUploader实现快速将本地文件上传到VPS服务器 - Rat's Blog Linux VPS一键安装桌面环境和RDP远程桌面连接 - Rat's Blog Kvmla:1G内存/40G硬盘/600G流量/日本&香港&新加坡KVM/月付¥80 - Rat's Blog 新型功能强大的VPS虚拟主机控制面板:BrainyCP安装教程 - Rat's Blog VPS服务器如何优化/加快网站的访问速度 - Rat's Blog loader工具转换成Debian 9系统 - Rat's Blog
Linux VPS一键更换软件源脚本 - Rat's Blog
博主: Rat's · 2018-11-02 · via Rat's Blog - vps
  •  发布时间:
  •  27032 次浏览
  •   4 条评论
  •  963 字数
  • 分类: 主机教程
  1.  首页
  2. 正文  
  3. 分享到:

前言

有时候会遇到Linux的源更新速度非常的缓慢,特别是在国内使用默认的源,因为国内的网络环境,经常会出现无法更新,更新缓慢的情况。在这种情况下,更换一个更适合或者说更近,更快的软件源,会为你的Linux安装更新操作更加的流畅和顺利。

使用

系统要求:CentOS 5+Ubuntu 14.04+Debian 7+

使用命令:

#下载脚本
wget git.io/superupdate.sh
#运行脚本
bash superupdate.sh

如果第一步你出现错误或执行后无任何输出,请检查是否安装wgetca-certificates,使用命令:

#Debian、Ubuntu
apt-get install -y wget && apt-get install -y ca-certificates
#CentOS
yum install -y wget && yum install -y ca-certificates

对于Debian默认换源为Fastly CDNmirror这个源有Fastly的加持对境外主机都有不错的速度。对于UbuntuCentOS系统都默认换为阿里云的mirror,这个源有阿里云全球CDN的加持,全球都有不错的速度。

对于Debian系统还设置了四套其他的源,阿里云,CloudFront CDN,网易163,中科大的源,请根据需要使用参数一键设置如:

bash superupdate.sh cn
bash superupdate.sh 163
bash superupdate.sh aliyun
bash superupdate.sh aws

如果配置的文件不满意,一键还原

bash superupdate.sh restore

文章来源:一键更换Linux软件源脚本


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/784/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。