详细讲一讲搭建Trojan-GFW代理

2021-04-23  本文已影响0人  lokamir

如何不费脑子快速搭建

推荐懒人一键安装法
yum install -y curl #CentOS
apt install -y curl #Debian
#安装/更新
source <(curl -sL https://git.io/trojan-install)

#卸载
source <(curl -sL https://git.io/trojan-install) --remove
  1. 选第一个Let's Encrypt 证书
  2. 输入申请证书的域名: 自己注册并绑定了当前服务器ip的域名
  3. 选择1安装Dock版MySQL
  4. 输入自定义用户名(可以直接回车使用随机用户名)
  5. 输入自定义密码(可以直接回车使用随机密码)
    -- 安装结束
systemctl start trojan-web #启动web服务
systemctl enable trojan-web #设置自启动: 
source <(curl -sL https://git.io/trojan-install) #更新管理程序:

Usage:
  trojan [flags]
  trojan [command]

Available Commands:
  add           添加用户
  clean         清空指定用户流量
  completion    自动命令补全(支持bash和zsh)
  del           删除用户
  help          Help about any command
  info          用户信息列表
  log           查看trojan日志
  restart       重启trojan
  start         启动trojan
  status        查看trojan状态
  stop          停止trojan
  tls           证书安装
  update        更新trojan
  updateWeb     更新trojan管理程序
  version       显示版本号
  import [path] 导入sql文件
  export [path] 导出sql文件
  web           以web方式启动

Flags:
  -h, --help   help for trojan
vi /usr/local/etc/trojan/config.json
  "websocket": {
        "enabled": true,
        "path": "/DFE4545DFDED/",
        "host": "你的域名"
    },
    "mux": {
        "enabled": true,
        "concurrency": 8,
        "idle_timeout": 60
    }
上一篇 下一篇

猜你喜欢

热点阅读