搭建trogan

输入命令

1
wget -N --no-check-certificate -q -O trojan_install.sh "https://raw.githubusercontent.com/xyz690/Trojan/master/trojan_install.sh" && chmod +x trojan_install.sh && bash trojan_install.sh

然后输入绑定的域名

命令执行结果

出现这个信息就是安装成功了

查看运行状态

1
systemctl status trojan.service

成功运行显示:

运行状态

查看配置文件

1
cat /usr/src/trojan-macos/trojan/config.json

出现配置如下:

运行状态

  1. remote_addr:服务器地址(浏览器输入这个地址能打开网页)

  2. remote_port:端口

  3. password:密码