Trojan Web

Trojan Web

Posted by BlueFat on Wednesday, October 21, 2020

https://github.com/Jrohy/trojan

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

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

安装完后输入trojan可进入管理程序 设置证书、新增用户 …

root@ls:~# trojan

mysql安全配置

# 记录mariadb root密码 如uXkFk
cat /usr/local/etc/trojan/config.json | grep mysql -A10 | grep password | awk -F "\"" '{print $4}'

docker exec -it trojan-mariadb bash

mysql -u root -hlocalhost -p #输入密码
grant all on *.* to root@'localhost' identified by 'sunday';
update mysql.user set host='172.17.0.%' where user='root' and host='%';
flush privileges;

trojan-web修改端口 https://github.com/Jrohy/trojan/wiki/%E4%BF%AE%E6%94%B9web%E7%AB%AF%E5%8F%A3

trojan web start
trojan start

浏览器访问 https://域名