# 阿里云服务器配置Socks5代理

By [MaxPj](https://paragraph.com/@ludaobi) · 2022-05-21

---

进入服务器列表，点击远程连接，

![](https://storage.googleapis.com/papyrus_images/f5600c37ed3150dbf9cad0233aa2ae3d9fba5203a760874bc9261eb9b2b74a6e.png)

点击立即登录

![](https://storage.googleapis.com/papyrus_images/a9348506b5ae373c7ce5042b4736ee0c282e4a57b3e30dbe914d6ef10115e02a.png)

重置密码或者点击确定登陆

![](https://storage.googleapis.com/papyrus_images/cba39151e458f05bfaa8598504b6733b0b81bb0506f951a4e81f3adc367f74dd.png)

重置密码，需要“离线重置密码”，

![](https://storage.googleapis.com/papyrus_images/b29ba11bb548fb12129060e34b369ecbcfe726dea570135ee1ab82c6909f04d8.png)

重置之后需要重启

![](https://storage.googleapis.com/papyrus_images/3172e1923ab2bf3b895a34cce5765384c35123d177e05d0d7406f7606a78a11f.png)

重启中，

![](https://storage.googleapis.com/papyrus_images/47d9bc54bdea7238172d9b191674cf2bd6bcd1993c1e183c501b8a027f1e145e.png)

启动之后，点击远程连接，

![](https://storage.googleapis.com/papyrus_images/d79a7910445433deac31e1dff41fc2b79ba8d872604a343b35120c60c9949f08.png)

点击确定，

![](https://storage.googleapis.com/papyrus_images/efb695db649bc365a2b2dcdb17b13aa1140d9f7e3ecd4597076e14779f780340.png)

进入控制台页面，

![](https://storage.googleapis.com/papyrus_images/51b1c081e806bab666e971f7825a62b4f57531da565436df32ee655b29212f06.png)

执行命令： **bash <(curl -s -L** [**https://git.io/v2ray.sh**](https://git.io/v2ray.sh) **)** ，选择1安装，之后的操作全部默认点击ENTER即可。

![](https://storage.googleapis.com/papyrus_images/35b6a7590732360c5532ec63022e85f12885c1b3224cc54bf21d80ecc352e4d9.png)

安装完成之后，在命令行中输入，v2ray，会有如下界面。

![](https://storage.googleapis.com/papyrus_images/f21344ae0098a5366f0ccf67f33fc3d8cc9d551f0fadbac8c5b3e17a154a4da8.png)

输入7，然后输入相应的配置即可。

备注：

**（1）如果首台服务器设置，需要增加安全组设置，如果不是首台则不需要。**

![](https://storage.googleapis.com/papyrus_images/06f593acfec2c1f6d02736b295827017d11757acb6751db009b42d81bd3076fe.png)

![](https://storage.googleapis.com/papyrus_images/4fc1da423933f3837492098123adaf4b9edd41326b313ab3ea5f75ad42b1c04f.png)

![](https://storage.googleapis.com/papyrus_images/1f58a087baf7e4e817d7fb8b70e96b171597237c053a8a2803f4eb0af4055d2f.png)

**（2）现在只放行了5000端口，所有socks5的端口需要设置成5000。**

---

*Originally published on [MaxPj](https://paragraph.com/@ludaobi/socks5)*
