翻墙 | trojan一键安装



trojan最新官方脚本服务器端一键安装,安全无后门。
使用 certbot 证书机器人自动申请 letsencrypt 证书。
本教程安装不限制操作系统,可以使用除了 Debian 的其他操作系统。

Trojan 在线文档
https://trojan-gfw.github.io/trojan

Trojan 各种平台上的安装指南
https://github.com/trojan-gfw/trojan/wiki/Binary-&-Package-Distributions
友情提醒:如果你在 Windows 上安装 Trojan 客户端,请先下载 vc_redist.x64.exe,然后安装的客户端才可以正常打开。具体请看 Windows 安装指南这一节。

Certbot 证书机器人官网
https://certbot.eff.org/、

▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬
本视频用到的命令

1. 使用证书机器人 certbot 申请 letsencrypt 证书
# wget https://dl.eff.org/certbot-auto -P /usr/local/bin
# chmod a+x /usr/local/bin/certbot-auto
# certbot-auto certonly –standalone -d tro1.appletrees.cn -d tro2.appletrees.cn –email [email protected]

2. trojan启动/关闭/查看运行状态/开机启动 命令
# systemctl start trojan
# systemctl stop trojan
# systemctl status trojan
# systemctl enable trojan

3. 三个月后,证书会过期,需要用证书机器人重新更新下证书
# certbot-auto renew

4. 查看 debian 操作系统的版本
# cat /etc/debian_version

▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬ ▬
欢迎订阅频道
https://www.youtube.com/channel/UCgo7XWK6MQBgKt0gBI6x3CA?sub_confirmation=1

技术交流互动电报群
t.me/shinianlaocheng .

5 comments
  1. 我建议如果是老鸟,以前装过v2ray这些,可以把证书保存下来,就不用每次都重新申请了。经常有人由于安装问题,反复安装多次申请,结果申请证书频率过高,不能再申请了。

  2. 您好,请教您,出现:-bash: /usr/local/bin/certbot-auto: Permission denied是什么原因呢?如何处理?我按您的讲解进行到这一步时无法继续了,能否麻烦您给点指导?非常感谢

Comments are closed.