传送门
- Trojan多用户管理部署程序 https://github.com/Jrohy/trojan
- Trojan-Qt5 https://github.com/TheWanderingCoel/Trojan-Qt5
- Shadowrocket 规则 https://github.com/h2y/Shadowrocket-ADBlock-Rules
集成一键脚本
- 更新系统
apt update -y
- 安装curl支持环境
apt -y install curl #Debian
yum -y install curl #CentOS
- 安装/卸载程序
source <(curl -sL https://git.io/trojan-install)
source <(curl -sL https://git.io/trojan-install) --remove #卸载
Docker容器镜像
- 安装docker
wget -qO- https://get.docker.com/ | sh
- 安装mysql,端口和root密码以及持久化目录都可以改成其他的
docker run --name trojan-mysql --restart=always -p 3306:3306 -v /home/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=trojan -e MYSQL_ROOT_HOST=% -e MYSQL_DATABASE=trojan -d mysql/mysql-server:5.7
- docker安装trojan
docker run -it -d --name trojan --net=host --restart=always --privileged jrohy/trojan init
- 运行完后进入容器
docker exec -it trojan bash
, 然后输入’trojan’即可进行初始化安装
- 启动web服务:
systemctl start trojan-web
- 设置自启动:
systemctl enable trojan-web
- 更新管理程序:
source <(curl -sL https://git.io/trojan-install)
- 其他命令行
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 显示版本号
web 以web方式启动
Flags:
-h, --help help for trojan
BBR安装
- 安装依赖
#CentOS系统
yum -y install wget
yum update -y && yum install curl -y
#Ubuntu/Debian 系统
apt-get install wget
apt-get update -y && apt-get install curl -y
- BBR四合一一键脚本
wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
安装完成重启后执行 ./tcp.sh 启动加速