ke4989's blog

  1. 首页
  2. 实际应用
  3. 正文

搭建Trojan服务器

2025/3/26

参考的教程如下:

trojan教程 - tlanyan

【2025】适合小白的Trojan一键搭建图文教程,Trojan搭建教程

需要注意的点有:

  1. 本地防火墙和云服务商的端口一定要记得开放(我常用的机器没有打开ufw防火墙,都忘了还有这回事

  2. Trojan配置文件记得中修改 "local_addr": "0.0.0.0",不能写127.0.0.1

然后放一些常用命令在这里备用:

查看运行状态:

ss -lp | grep trojan
systemctl status trojan.service

重启:

systemctl restart trojan.service

修改配置文件:

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

测试配置文件:

trojan -c /etc/trojan/config.json

然后贴一个我能用的clash配置文件示例:

mixed-port: 7890
allow-lan: true
bind-address: '*'
mode: rule
log-level: info
external-controller: '127.0.0.1:9090'
dns:
    略
proxies:
    - { name: 'example', type: trojan, server: your.server.domain, port: 80, password: your_password, sni: your.server.domain}
标签: 暂无
最后更新:2025/3/26

ke4989

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >

文章评论

  • WALNUT

    111,大佬太强啦!!!!!

    2025/3/26
    回复
  • razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
    取消回复

    归档

    • 2026 年 2 月
    • 2025 年 5 月
    • 2025 年 4 月
    • 2025 年 3 月
    • 2024 年 11 月
    • 2024 年 10 月

    分类

    • python
    • 实际应用
    • 未分类
    • 网站搭建
    • 资源推荐

    COPYRIGHT © 2025 ke4989's blog. ALL RIGHTS RESERVED.

    Theme Kratos Made By Seaton Jiang