newechoes/src/content/VPN/一键搭建Telegram的MTProto代理.md

35 lines
724 B
Markdown
Raw Normal View History

---
title: "一键搭建Telegram的MTProto代理"
date: 2021-08-09T00:07:00+08:00
tags: ["telegram", "mtproto"]
---
## 一、同步时间
### CentOS 7
```bash
yum install -y ntp
systemctl enable ntpd
ntpdate -q 0.rhel.pool.ntp.org
systemctl restart ntpd
```
### Debian 9 / Ubuntu 16
```bash
apt-get install -y ntp
systemctl enable ntp
systemctl restart ntp
```
### 或者(时间同步为上海)
```bash
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate time.nist.gov
```
## 二、一键安装
```bash
mkdir /home/mtproxy && cd /home/mtproxy
curl -s -o mtproxy.sh https://raw.githubusercontent.com/ellermister/mtproxy/master/mtproxy.sh && chmod +x mtproxy.sh && bash mtproxy.sh
```