1、源码包下载解压
下载地址:https://github.com/ginuerzh/gost/releases

root@ip-172-93-5-233:~# wget https://github.com/ginuerzh/gost/releases/download/v2.11.3/gost-linux-amd64-2.11.3.gz
--2022-08-29 11:41:59-- https://github.com/ginuerzh/gost/releases/download/v2.11.3/gost-linux-amd64-2.11.3.gz
Resolving github.com (github.com)... 20.205.243.166
Connecting to github.com (github.com)|20.205.243.166|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/32575637/90295007-0a1d-4f63-a26b-17cd7520a0f9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220829%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220829T114109Z&X-Amz-Expires=300&X-Amz-Signature=1fb71c335e0ef5c83843f3503f35bcbe757849781888d1a964a9cb87f1eaeb93&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=32575637&response-content-disposition=attachment%3B%20filename%3Dgost-linux-amd64-2.11.3.gz&response-content-type=application%2Foctet-stream [following]
--2022-08-29 11:41:59-- https://objects.githubusercontent.com/github-production-release-asset-2e65be/32575637/90295007-0a1d-4f63-a26b-17cd7520a0f9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220829%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220829T114109Z&X-Amz-Expires=300&X-Amz-Signature=1fb71c335e0ef5c83843f3503f35bcbe757849781888d1a964a9cb87f1eaeb93&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=32575637&response-content-disposition=attachment%3B%20filename%3Dgost-linux-amd64-2.11.3.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5277031 (5.0M) [application/octet-stream]
Saving to: ‘gost-linux-amd64-2.11.3.gz’
gost-linux-amd64-2.11.3.gz 100%[=================================================================================================================================================================>] 5.03M 22.3MB/s in 0.2s
2022-08-29 11:42:00 (22.3 MB/s) - ‘gost-linux-amd64-2.11.3.gz’ saved [5277031/5277031]
[1]+ Exit 8 wget https://github-production-release-asset-2e65be.s3.amazonaws.com/32575637/63bb3300-9d3d-11ea-8eb3-86e7740548a6?X-Amz-Algorithm=AWS4-HMAC-SHA256
root@ip-172-93-5-233:~# ls
gost-linux-amd64-2.11.3.gz
root@ip-172-93-5-233:~# gunzip gost-linux-amd64-2.11.3.gz
root@ip-172-93-5-233:~# ls
gost-linux-amd64-2.11.3
2、gost赋予权限并拷贝到对应目录下,并启动程序
root@ip-172-93-5-233:~# chmod +x gost-linux-amd64-2.11.3
root@ip-172-93-5-233:~# cp gost-linux-amd64-2.11.3 /usr/local/bin/gost


root@ip-172-93-5-233:~# nohup gost -L=admin:123456@0.0.0.0:3456>./gost.log &
[1] 1578
root@ip-172-93-5-233:~# nohup: ignoring input and redirecting stderr to stdout

| 命令参数 | 解释说明 |
|---|---|
| nohup | 不挂断运行命令,当账户退出或终端关闭时,程序仍然运行 |
| ./gost -L=admin:123456@0.0.0.0:3456 | 设置账号密码端口并执行 |
| > ./gost.log | 设置日志,没有自动生成,不写默认nohup.out |
| & | 后台运行 |
3、查看日志
查看日志:tail -f gost.log

4、代理设置(有账户密码的需要加上)
1)、全局代理:右键网络-代理


2)、浏览器单独代理
(1)火狐:选项-搜索代理-手动代理配置

会提示输入账户密码
(2)谷歌浏览器使用的是全局代理
3)、idea单独代理

4)、微信单独代理(记得加密码)

5)、maven代理
<proxies>
<proxy>
<id>192.168.xx.xx</id>
<active>true</active>
<protocol>http</protocol>
<!--<username>proxyuser</username>-->
<!--<password>proxypass</password>-->
<host>192.168.xx.xx</host>
<port>12345</port>
</proxy>
</proxies>

6)、Git配置代理
https://blog.csdn.net/libusi001/article/details/107317459
7)、Xshell配置代理

