一键搭建Telegram的MTProto代理
版本提示 这篇文章最近一次更新距离现在已经超过一年了,内容可能已经过时,请谨慎参考。
1.同步时间
CentOS 7
代码块收起展开
yum install -y ntp
systemctl enable ntpd
ntpdate -q 0.rhel.pool.ntp.org
systemctl restart ntpdDebian 9 / Ubuntu 16
代码块收起展开
apt-get install -y ntp
systemctl enable ntp
systemctl restart ntp或者(时间同步为上海)
代码块收起展开
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate time.nist.gov2.一键安装
代码块收起展开
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