Files
Obsidian-Main/02. PARA/03. Resources(資源)/Trojan.md
Awin Huang b31bc78c26 vault backup: 2022-08-15 13:58:11
Affected files:
02. PARA/03. Resources(資源)/Trojan.md
attachments/Pasted image 20220815135026.png
attachments/Pasted image 20220815135248.png
2022-08-15 13:58:11 +08:00

1.5 KiB
Raw Blame History

準備

  1. 新增一台container先更新container
    apt update ;\
    apu upgrade -y ;\
    apt install curl vim -y
    
  2. 安裝trojan
    mkdir -p ~/trojan ;\
    cd ~/trojan
    curl -O https://raw.githubusercontent.com/atrandys/trojan/master/trojan_mult.sh ; chmod +x trojan_mult.sh ; ./trojan_mult.sh
    
  3. trojan
  4. 3 1
  5. 4 1
  6. 5 1

參考:

  1. Trojan 上網架設(替代VPN)爬梯子 科學上網 利器 - TWIDC
  2. Trojan搭建私人VPN - Lingme
  3. [转载+修改]使用Trojan-Go科学上网 - 996 RIP
  4. Source code: Releases · trojan-gfw/trojan

更新憑證

  1. 更新acmeacme.sh --upgrade
  2. 先停止 trojan-web
    systemctl stop trojan-web
    
  3. 停止 trojan如下圖 !Pasted image 20220815134750.png
  4. 切換到 /root/.acme.sh,執行 ./acme.sh --cron -f,如果憑證更新成功,應該會看到類似如下訊息: !Pasted image 20220815135026.png
  5. 重啟 trojan !Pasted image 20220815135248.png
  6. 重啟trojan-websystemctl start trojan-web