• ubuntu20.04部署gost服务


    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  
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24

    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
    
    • 1
    • 2

    在这里插入图片描述
    在这里插入图片描述

    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
    
    • 1
    • 2
    • 3

    在这里插入图片描述

    命令参数解释说明
    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>
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11

    在这里插入图片描述
    6)、Git配置代理
    https://blog.csdn.net/libusi001/article/details/107317459

    7)、Xshell配置代理
    在这里插入图片描述
    在这里插入图片描述

  • 相关阅读:
    公司网页制作需要多少钱
    Apache HTTPD 漏洞复现
    基于风险评估标准内容演变理解安全运营工作本质
    计算机毕业设计Java自驾游网站系统(源码+系统+mysql数据库+lw文档)
    [附源码]JAVA毕业设计教材管理(系统+LW)
    Redis 排障:你永远不知道告警和下班,谁先到来?
    ARM64 linux并发与同步之内存屏障
    使用tornado实现sse
    【服务器数据恢复】HP StorageWorks系列服务器RAID5两块盘离线的数据恢复
    【SQL语法基础】如何使用Python操作MySQL?
  • 原文地址:https://blog.csdn.net/baidu_38432732/article/details/126592151