MTProxyTLS 绿色版一键安装脚本

  1. 第一个不要用 使用第二个或者第三个模式 比较好

图片[1]-MTProxyTLS 绿色版一键安装脚本-草丛资源整合站

一键部署代码:

rm -rf /home/mtproxy && mkdir /home/mtproxy && cd /home/mtproxy
curl -fsSL -o mtproxy.sh https://github.com/ellermister/mtproxy/raw/master/mtproxy.sh
bash mtproxy.sh

一、配置文件说明

MTProxy 的配置文件为 config。如需手动修改密钥或参数,请注意格式避免出错。


二、服务管理命令

启动服务

bash mtproxy.sh start

调试运行

bash mtproxy.sh debug

停止服务

bash mtproxy.sh stop

重启服务

bash mtproxy.sh restart

重新安装 / 重新配置

bash mtproxy.sh reinstall

三、卸载 MTProxy

MTProxy 为绿色版,无需卸载脚本,直接删除目录:

rm -rf /home/mtproxy

四、设置开机启动

脚本未设置 systemd 服务,可手动加入 rc.local:

cd /home/mtproxy && bash mtproxy.sh start > /dev/null 2>&1 &

注意:确保 rc.local 文件具有执行权限

chmod +x /etc/rc.local

五、计划任务守护(建议)

官方 mtproxy 存在 PID 大于 65535 时进程异常的 bug,建议使用 crontab 自动拉起。

crontab -e

每分钟检查并启动服务

# 示例(需按实际脚本路径修改)
* * * * * cd /home/mtproxy && bash mtproxy.sh start

感谢您的来访,获取更多精彩文章请收藏本站。

© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容