峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
首页
平水韵
颜色表
ABOUT
文章分类
友情链接
BT + Trojan
2020-04-30 |Nonni | Net

相泽南ip.jpg
安装宝塔面板
Centos :

yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh

The experimental Centos/Ubuntu/Debian/Fedora installation command supports ipv6. Note that this command is executed with root privileges (Centos8 is supported)

curl -sSO http://www.aapanel.com/script/new_install_en.sh && bash new_install_en.sh

Ubuntu/Deepin :

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && sudo bash install.sh

Debian :

wget -O install.sh http://www.aapanel.com/script/install-ubuntu_6.0_en.sh && bash install.sh

Remove BT:

service bt stop && chkconfig --del bt && rm -f /etc/init.d/bt && rm -rf /www/server/panel

安装BBRplus

yum install wget
bash <(curl -s -L https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh)

安装Trojan

bash <(curl -fsSL https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh)

配置Trojan

vi /usr/local/etc/trojan/config.json

把”cert”改为 /www/server/panel/vhost/ssl/域名/fullchain.pem

/www/server/panel/vhost/ssl/www.xxx.com/fullchain.pem

把”key”改为 /www/server/panel/vhost/ssl/域名/privkey.pem

/www/server/panel/vhost/ssl/www.xxx.com/privkey.pem

再改下密码,配置完成。

常用命令
启动服务

systemctl start trojan

停止服务

systemctl stop trojan

重启服务

systemctl restart trojan

查看状态

systemctl status trojan

开机自启

systemctl enable trojan
respond-post-487

添加新评论

请填写称呼
请填写合法的电子邮箱地址
请填写合法的网站地址
请填写内容