Ubuntu配置代理最详细教程

安装环境

bash 复制代码
sudo apt update
sudo apt install bzip2 tar
sudo apt-get install curl

安装ShellCrash

sudo -i #切换到root用户

bash 复制代码
export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' && wget -q --no-check-certificate -O /tmp/install.sh $url/install.sh  && bash /tmp/install.sh && source /etc/profile &> /dev/null

备用源

bash 复制代码
export url='https://gh.jwsc.eu.org/master' && bash -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null

安装SC

建议选择1

root用户选择1

选择一个别名

输入命令sc(我选的是sc)

输入数字2配置本机代理

根据提示操作,选择在线生成配置文件

直接输入你的代理订阅链接

然后输入1生成文件

启动服务

可以自行进行配置

放行端口

bash 复制代码
iptables -I INPUT -p tcp --dport 9999 -j ACCEPT

测试打开google

bash 复制代码
curl google.com

测速

bash 复制代码
sudo apt install speedtest-cli

运行:speedtest

相关推荐
SkyWalking中文站7 小时前
认识 Horizon UI · 5/17:3D 基础设施地图
运维·监控·自动化运维
tntxia1 天前
linux curl命令详解_curl详解
linux
扛枪的书生1 天前
Linux 网络管理器用法速查
linux
SkyWalking中文站1 天前
认识 Horizon UI · 1/17:SkyWalking 新一代可观测性控制台
运维·前端·监控
顺风尿一寸1 天前
Java Socket 内核之旅:从 SocketChannel.read() 到 tcp_recvmsg 与 epoll 的完整调用链路
linux
雪梨酱QAQ1 天前
Kubeneters HA Cluster部署
运维
江华森1 天前
Spring Cloud 微服务全栈实战:从 Eureka 到 Docker Compose 一文贯通
运维
江华森1 天前
Matplotlib 数据绘图基础入门
运维
XIAOHEZIcode1 天前
Ubuntu 终端美化全栈指南:Bash 到 Kitty 踩坑实录
linux·ubuntu·命令行
江华森1 天前
NumPy 数值计算基础入门
运维