Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sunpma/mtp
MTProxy TLS 绿色版一键安装脚本
https://github.com/sunpma/mtp
Last synced: 16 days ago
JSON representation
MTProxy TLS 绿色版一键安装脚本
- Host: GitHub
- URL: https://github.com/sunpma/mtp
- Owner: sunpma
- Created: 2020-07-15T16:30:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-02T05:13:49.000Z (over 2 years ago)
- Last Synced: 2024-07-31T08:19:00.830Z (4 months ago)
- Language: Shell
- Size: 1.7 MB
- Stars: 371
- Watchers: 8
- Forks: 148
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MTProxy TLS 绿色版一键安装脚本
## 安装
执行如下代码进行安装
```bash
## 新建目录
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
```![demo.png](https://raw.githubusercontent.com/sunpma/mtp/master/demo.png)
## 使用
运行服务
```bash
bash mtproxy.sh start
```
调试运行```bash
bash mtproxy.sh debug
```停止服务
```bash
bash mtproxy.sh stop
```重启服务
```bash
bash mtproxy.sh restart
```## 卸载安装
因为是绿色版卸载极其简单,直接删除所在目录即可。
```bash
rm -rf /home/mtproxy
```## 开机启动
```bash
chmod 755 /home/mtproxy/mtproxy.shvi /etc/crontab
## 加入下面这条命令后保存即可;
@reboot root nohup bash /home/mtproxy/mtproxy.sh start > /dev/null 2>&1 &
```