峯言凬语 O ever youthful O ever weeping~
本无意与众不同,怎奈何口味太重。
文章分类
常用标签
友情链接
April 30, 2020

相泽南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
暂无评论

添加新评论