当前位置:网站首页>使用云服务器搭建代理
使用云服务器搭建代理
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这个软件默认是英文版本,需要汉化的朋友自己可以去找一下教程。
!!!声明:本教程用于在云服务器上设置代理,至于设置代理的用途以及在什么样的服务器上设置代理,请遵守中国大陆地区的法律。
边栏推荐
- 第3章:类的加载过程(类的生命周期)详解
- [线性代数] 1.3 n阶行列式
- [sdx62] wcn685x will bdwlan Bin and bdwlan Txt mutual conversion operation method
- Unity3d minigame unity webgl transform plug-in converts wechat games to use dlopen, you need to use embedded 's problem
- 剪映+json解析将视频中的声音转换成文本
- Data storage (1)
- Aardio - 封装库时批量处理属性与回调函数的方法
- ThreadLocal详解
- UDP编程
- 网络基础入门理解
猜你喜欢
Improving Multimodal Accuracy Through Modality Pre-training and Attention
Clip +json parsing converts the sound in the video into text
树的先序中序后序遍历
图像的spatial domain 和 frequency domain 图像压缩
第3章:类的加载过程(类的生命周期)详解
基于 QEMUv8 搭建 OP-TEE 开发环境
CocosCreator+TypeScripts自己写一个对象池
NetXpert XG2帮您解决“布线安装与维护”难题
NPDP certification | how do product managers communicate across functions / teams?
PVL EDI project case
随机推荐
China 1,4-cyclohexanedimethanol (CHDM) industry research and investment decision-making report (2022 Edition)
Seata聚合 AT、TCC、SAGA 、 XA事务模式打造一站式的分布式事务解决方案
12、 Start process
2022-07-04 the high-performance database engine stonedb of MySQL is compiled and run in centos7.9
柔性数组到底如何使用呢?
0 basic learning C language - digital tube
做接口测试都测什么?有哪些通用测试点?
网络基础入门理解
Gd32f4xx serial port receive interrupt and idle interrupt configuration
CCNA Cisco network EIGRP protocol
The ceiling of MySQL tutorial. Collect it and take your time
[leetcode] 19. Delete the penultimate node of the linked list
AI enterprise multi cloud storage architecture practice | Shenzhen potential technology sharing
return 关键字
Pit encountered by handwritten ABA
three.js绚烂的气泡效果
Aardio - 利用customPlus库+plus构造一个多按钮组件
rust知识思维导图xmind
qt quick项目offscreen模式下崩溃的问题处理
(18) LCD1602 experiment