MTProxy TLS 绿色版一键安装脚本

一、MTProxy

Highly-opinionated (ex-bullshit-free) MTPROTO proxy for Telegram.

开源github:https://github.com/missuo/MTProxy

Supportability

  • X86_64
  • ARM_64

Installation

bash <(curl -Ls https://qwq.mx/mtg)

Due to the CDN cache, jsdelivr link may not be the latest.

bash <(curl -Ls https://cdn.jsdelivr.net/gh/missuo/MTProxy/mtproxy.sh)

二、MTProxy TLS 绿色版一键安装脚本

安装

执行如下代码进行安装

## 新建目录
mkdir /home/mtproxy && cd /home/mtproxy

## 开始安装
curl -s -o mtproxy.sh https://raw.githubusercontent.com/sunpma/mtp/master/mtproxy.sh && chmod +x mtproxy.sh && bash mtproxy.sh

img

使用

运行服务

bash mtproxy.sh start

调试运行

bash mtproxy.sh debug

停止服务

bash mtproxy.sh stop

重启服务

bash mtproxy.sh restart

卸载安装

因为是绿色版卸载极其简单,直接删除所在目录即可。

rm -rf /home/mtproxy

开机启动

chmod 755 /home/mtproxy/mtproxy.sh

vi /etc/crontab

## 加入下面这条命令后保存即可;

@reboot root nohup bash /home/mtproxy/mtproxy.sh start > /dev/null 2>&1 &
THE END
喜欢就支持一下吧
点赞0 分享