# vps搭建socks **Published by:** [droi99523](https://paragraph.com/@axiomgate/) **Published on:** 2023-01-10 **URL:** https://paragraph.com/@axiomgate/vps-socks ## Content 1、安装gost wget https://github.com/ginuerzh/gost/releases/download/v2.11.1/gost-linux-amd64-2.11.1.gz gunzip gost-linux-amd64-2.11.1.gz mv gost-linux-amd64-2.11.1 /usr/bin/gost chmod +x /usr/bin/gost 2、开启代理无需认证(修改端口号即可)gost -L socks5://:18081开启认证(其中的 “账号” “密码” “端口” 自行修改)gost -L 账号:密码@:端口 socks5://:端口测试没问题后可以用nohup命令挂载到后台运行,重启失效,再次挂载即可重新使用;nohup gost -L 账号:密码@:端口 socks5://:端口 > /dev/null 2>&1 & 3、设置后台运行: nohup gost -L=:55555 socks5://:55555 > /dev/null 2>&1 & 4、关闭进程关闭: kill -9 $(ps aux | grep "gost" | sed '/grep/d' | awk '{print $2}') ## Publication Information - [droi99523](https://paragraph.com/@axiomgate/): Publication homepage - [All Posts](https://paragraph.com/@axiomgate/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@axiomgate): Subscribe to updates