GithubHelp home page GithubHelp logo

viceyy / trojan-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jrohy/trojan

0.0 0.0 0.0 79 KB

trojan多用户管理部署程序

License: Apache License 2.0

Shell 15.44% Go 83.33% Dockerfile 1.24%

trojan-1's Introduction

trojan

trojan多用户管理部署程序

功能

  • 启动 / 停止 / 重启 trojan 服务端
  • 支持流量统计和流量限制
  • 命令行模式管理, 支持命令补全
  • 多用户管理
  • 集成acme.sh证书申请
  • 生成客户端配置文件

安装方式

trojan使用请提前准备好服务器可用的域名

a. 一键脚本安装

#安装
source <(curl -sL https://git.io/trojan-install)

#卸载
source <(curl -sL https://git.io/trojan-install) --remove

安装完后输入'trojan'即可进入管理程序

b. 二进制文件运行

到release页面直接下载二进制文件后, 放到linux服务器上
因为trojan本身仅支持x86_64, 所以只编译了x86_64版本的管理程序

chomd +x trojan
./trojan

若需要命令补全, 则需将trojan文件放置在/usr/local/bin/目录下, 然后运行

#bash环境
echo "source <(trojan completion bash)" >> ~/.bashrc
source ~/.bashrc

#zsh环境
echo "source <(trojan completion zsh)" >> ~/.zshrc
source ~/.zshrc

如果还是无法补全, 可能系统缺少bash-completion依赖, 需手动安装

c. docker运行

开发中

命令行

Usage:
  trojan [flags]
  trojan [command]

Available Commands:
  add         添加用户
  completion  自动命令补全(支持bash和zsh)
  del         删除用户
  help        Help about any command
  info        用户信息列表
  restart     重启trojan
  start       启动trojan
  status      查看trojan状态
  stop        停止trojan
  tls         证书安装
  update      更新trojan
  version     显示版本号

Flags:
  -h, --help   help for trojan

注意

安装完trojan后建议开启BBR等加速: Linux-NetSpeed

trojan-1's People

Contributors

jrohy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.