当前位置:网站首页>使用云服务器搭建代理
使用云服务器搭建代理
2022-07-06 15:10:00 【用户6256742】
不知道为什么Github、MDN等网站也逐渐被加入了GFW的名单,在外面购买V**服务也逐渐变得不稳定。因此对于经常使用境外服务进行学习和工作的人来说,使用云服务器搭建代理是非常有必要的。本文教学使用x-ui在云服务器上设置代理。
端口开放
首先,我们需要在云服务商提供的安全组中开放全部端口
这里以阿里云为例,腾讯等其他云服务器也差不多
注意:如果使用到了宝塔Linux面板需要在安全中在开放一下端口。
程序安装
使用Xshell工具,宝塔Linux中使用终端即可
按照顺序运行以下命令:
CentOS:
yum update -y
yum install -y curl
yum install -y socat
Ubuntu:
apt update -y
apt install -y curl
apt install -y socat
完成后运行:
bash <(curl -Ls https://raw.githubusercontent.com/sprov065/x-ui/master/install.sh)
后会自动开始安装程序(这里需要一些时间),并且因为下载源在GitHub所以有可能会下载失败。建议不要在晚上下载,并且遇到下载失败后多次尝试。
安装成功后会要求设置对应IP的端口号,以及管理系统登录使用的账号密码。
如果你设置的端口号是 4567,你的IP是11.11.11。那么在程序设置完成后使用11.11.11:4567登录。
根据上面设置的信息我们可以在这个页面输入我们设置的用户名和密码进行登录。
系统配置
登录成功进入系统后可以看到这样的一个面板,展示服务器的基础信息。
在左侧的入站列表中创建代理:
默认是使用呢IP进行访问,我们可以设置TLS证书来映射域名只需输入域名和证书的密钥对即可:
设置完成后我们可以在操作中点击二维码,扫描或者直接复制在我们平时使用的设备中进行连接。
这里推荐使用:Clash来连接代理,Clash这个软件默认是英文版本,需要汉化的朋友自己可以去找一下教程。
!!!声明:本教程用于在云服务器上设置代理,至于设置代理的用途以及在什么样的服务器上设置代理,请遵守中国大陆地区的法律。
边栏推荐
- pytorch_ Yolox pruning [with code]
- OpenCV VideoCapture. Get() parameter details
- RESNET rs: Google takes the lead in tuning RESNET, and its performance comprehensively surpasses efficientnet series | 2021 arXiv
- 中国固态氧化物燃料电池技术进展与发展前景报告(2022版)
- labelimg的安装与使用
- 树的先序中序后序遍历
- 重磅新闻 | Softing FG-200获得中国3C防爆认证 为客户现场测试提供安全保障
- 【无标题】
- Netxpert xg2 helps you solve the problem of "Cabling installation and maintenance"
- (十八)LCD1602实验
猜你喜欢
[leetcode daily clock in] 1020 Number of enclaves
自定义 swap 函数
Seata聚合 AT、TCC、SAGA 、 XA事务模式打造一站式的分布式事务解决方案
Self made j-flash burning tool -- QT calls jlinkarm DLL mode
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
Assembly and interface technology experiment 5-8259 interrupt experiment
Leetcode question brushing (XI) -- sequential questions brushing 51 to 55
Aardio - 利用customPlus库+plus构造一个多按钮组件
rust知识思维导图xmind
Leetcode exercise - Sword finger offer 26 Substructure of tree
随机推荐
[sdx62] wcn685x will bdwlan Bin and bdwlan Txt mutual conversion operation method
Mise en place d'un environnement de développement OP - tee basé sur qemuv8
剪映+json解析将视频中的声音转换成文本
That's why you can't understand recursion
2022-07-05 stonedb的子查询处理解析耗时分析
uniapp设置背景图效果demo(整理)
Should novice programmers memorize code?
二分图判定
Seata aggregates at, TCC, Saga and XA transaction modes to create a one-stop distributed transaction solution
12、 Start process
What are the specific steps and schedule of IELTS speaking?
Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
return 关键字
Comparison between variable and "zero value"
Solve project cross domain problems
小程序系统更新提示,并强制小程序重启并使用新版本
MySQL数据库基本操作-DML
0 basic learning C language - digital tube
leetcode:面试题 17.24. 子矩阵最大累加和(待研究)
做国外LEAD2022年下半年几点建议